dolibarr 21.0.0-alpha
|
Class to manage logging to syslog. More...
Public Member Functions | |
getName () | |
Return name of logger. | |
getVersion () | |
Version of the module ('x.y.z' or 'dolibarr' or 'experimental' or 'development') | |
getInfo () | |
Content of the info tooltip. | |
isActive () | |
Is the logger active ? | |
configure () | |
Return array of configuration data. | |
checkConfiguration () | |
Return if configuration is valid. | |
export ($content, $suffixinfilename='') | |
Export the message. | |
Public Member Functions inherited from LogHandler | |
getWarning () | |
Return warning if something is wrong with logger. | |
setIdent ($ident) | |
Set current ident. | |
Class to manage logging to syslog.
Definition at line 11 of file mod_syslog_syslog.php.
mod_syslog_syslog::checkConfiguration | ( | ) |
Return if configuration is valid.
Reimplemented from LogHandler.
Definition at line 85 of file mod_syslog_syslog.php.
References dol_syslog(), and getDolGlobalString().
mod_syslog_syslog::configure | ( | ) |
Return array of configuration data.
Reimplemented from LogHandler.
Definition at line 67 of file mod_syslog_syslog.php.
mod_syslog_syslog::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 from LogHandler.
Definition at line 112 of file mod_syslog_syslog.php.
References dol_trunc(), and getDolGlobalString().
mod_syslog_syslog::getInfo | ( | ) |
Content of the info tooltip.
Reimplemented from LogHandler.
Definition at line 40 of file mod_syslog_syslog.php.
mod_syslog_syslog::getName | ( | ) |
Return name of logger.
Reimplemented from LogHandler.
Definition at line 20 of file mod_syslog_syslog.php.
mod_syslog_syslog::getVersion | ( | ) |
Version of the module ('x.y.z' or 'dolibarr' or 'experimental' or 'development')
Reimplemented from LogHandler.
Definition at line 30 of file mod_syslog_syslog.php.
mod_syslog_syslog::isActive | ( | ) |
Is the logger active ?
Reimplemented from LogHandler.
Definition at line 52 of file mod_syslog_syslog.php.
References getDolGlobalString().