dolibarr 21.0.0-alpha
|
Parent class for log handlers. More...
Public Member Functions | |
getName () | |
Return name of logger. | |
getInfo () | |
Content of the info tooltip. | |
getWarning () | |
Return warning if something is wrong with logger. | |
getVersion () | |
Version of the module ('x.y.z' or 'dolibarr' or 'experimental' or 'development') | |
isActive () | |
Is the logger active ? | |
configure () | |
Configuration variables of the module. | |
checkConfiguration () | |
Function that checks if the configuration is valid. | |
setIdent ($ident) | |
Set current ident. | |
export ($content, $suffixinfilename='') | |
Export the message. | |
Parent class for log handlers.
Definition at line 24 of file logHandler.php.
LogHandler::checkConfiguration | ( | ) |
Function that checks if the configuration is valid.
It will be called after setting the configuration. The function returns an array with error messages
Reimplemented in mod_syslog_file, and mod_syslog_syslog.
Definition at line 109 of file logHandler.php.
LogHandler::configure | ( | ) |
Configuration variables of the module.
Reimplemented in mod_syslog_file, and mod_syslog_syslog.
Definition at line 97 of file logHandler.php.
LogHandler::export | ( | $content, | |
$suffixinfilename = '' ) |
Export the message.
array{level:int,ip:string,ospid:string,osuser:string,message:string} | $content Array containing the info about the message | |
string | $suffixinfilename | When output is a file, append this suffix into default log filename. |
Reimplemented in mod_syslog_file, and mod_syslog_syslog.
Definition at line 132 of file logHandler.php.
LogHandler::getInfo | ( | ) |
Content of the info tooltip.
Reimplemented in mod_syslog_file, and mod_syslog_syslog.
Definition at line 57 of file logHandler.php.
LogHandler::getName | ( | ) |
Return name of logger.
Reimplemented in mod_syslog_file, and mod_syslog_syslog.
Definition at line 47 of file logHandler.php.
LogHandler::getVersion | ( | ) |
Version of the module ('x.y.z' or 'dolibarr' or 'experimental' or 'development')
Reimplemented in mod_syslog_file, and mod_syslog_syslog.
Definition at line 77 of file logHandler.php.
LogHandler::getWarning | ( | ) |
Return warning if something is wrong with logger.
Definition at line 67 of file logHandler.php.
LogHandler::isActive | ( | ) |
Is the logger active ?
Reimplemented in mod_syslog_file, and mod_syslog_syslog.
Definition at line 87 of file logHandler.php.
LogHandler::setIdent | ( | $ident | ) |
Set current ident.
int<-1,1> | $ident 1=Increase ident of 1, -1=Decrease ident of 1 |
Definition at line 120 of file logHandler.php.