dolibarr 20.0.0
|
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 106 of file logHandler.php.
LogHandler::configure | ( | ) |
Configuration variables of the module.
Reimplemented in mod_syslog_file, and mod_syslog_syslog.
Definition at line 94 of file logHandler.php.
LogHandler::export | ( | $content, | |
$suffixinfilename = '' ) |
Export the message.
array | $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 129 of file logHandler.php.
LogHandler::getInfo | ( | ) |
Content of the info tooltip.
Reimplemented in mod_syslog_file, and mod_syslog_syslog.
Definition at line 54 of file logHandler.php.
LogHandler::getName | ( | ) |
Return name of logger.
Reimplemented in mod_syslog_file, and mod_syslog_syslog.
Definition at line 44 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 74 of file logHandler.php.
LogHandler::getWarning | ( | ) |
Return warning if something is wrong with logger.
Definition at line 64 of file logHandler.php.
LogHandler::isActive | ( | ) |
Is the logger active ?
Reimplemented in mod_syslog_file, and mod_syslog_syslog.
Definition at line 84 of file logHandler.php.
LogHandler::setIdent | ( | $ident | ) |
Set current ident.
int | $ident | 1=Increase ident of 1, -1=Decrease ident of 1 |
Definition at line 117 of file logHandler.php.