Software Development Kit

cPanel & WHM's API [+] cPanel & WHM's API [-]


Modules and Plugins [+] Modules and Plugins [-]


cPanel & WHM Hooks [+] cPanel & WHM Hooks [-]


cPAddons (Site Software) [+] cPAddons (Site Software) [-]


System Administration [+] System Administration [-]


Developer Software [+] Developer Software [-]


Back to All Documentation



integrationblogcta.jpg

LogManager Module Documentation

This module allows the ability to change a user's log retention policies

The functions within this module may or may not be governed by a feature list. The required feature list may vary from function to function, to review a total list of the available features sets on a cPanel server, please see "Feature Manager" in WHM.

LogManager::savesettings

API Version: 1 - Click here for documentation
Syntax: LogManager::savesettings( archive, remarchive )
Description: Change the account's log archival settings.
Parameters:  
  archive (boolean)
  This parameter allows you to specify whether or not to archive logs. A value of 1 indicates that logs should be archived.
  remarchive (boolean)
  Whether to remove existing logs. A value of 1 indicates that logs should be removed.
Returns:  
 
This function does not produce any output.

LogManager::showsettings

API Version: 1 - Click here for documentation
Syntax: LogManager::showsettings( )
Description: Retrieve the current log archival settings.
Returns:  
 
The output will contain a chunk of HTML similar to:
<input value=1 type=checkbox name=archivelogs> Archive Logs in your home directory at the end of each month <br />
<input value=1 type=checkbox name=remoldarchivedlogs> Remove the previous month's archived logs from your home directory at the end of each month <br />

LogManager::listdownloads

API Version: 1 - Click here for documentation
Syntax: LogManager::listdownloads( )
Description: List raw access logs available for download.
Returns:  
 
The output will contain the following chunk of HTML, repeated for each log available:
<a href="/getlogarchive/$logfile">$logfile</a>


Topic revision: r2 - 27 Mar 2012 - 18:45:33 - Main.JenniferDoubrava