|
dolibarr
13.0.2
|
Class to manage logging to a file. More...
Inheritance diagram for mod_syslog_file:
Collaboration diagram for mod_syslog_file:Public Member Functions | |
| getName () | |
| Return name of logger. More... | |
| getVersion () | |
| Version of the module ('x.y.z' or 'dolibarr' or 'experimental' or 'development') More... | |
| getInfo () | |
| Content of the info tooltip. More... | |
| isActive () | |
| Is the module active ? More... | |
| configure () | |
| Return array of configuration data. More... | |
| checkConfiguration () | |
| Return if configuration is valid. More... | |
| export ($content, $suffixinfilename= '') | |
| Export the message. More... | |
Public Member Functions inherited from LogHandler | |
| getInfo () | |
| Content of the info tooltip. More... | |
| getWarning () | |
| Return warning if something is wrong with logger. More... | |
| getVersion () | |
| Version of the module ('x.y.z' or 'dolibarr' or 'experimental' or 'development') More... | |
| isActive () | |
| Is the module active ? More... | |
| configure () | |
| Configuration variables of the module. More... | |
| checkConfiguration () | |
| Function that checks if the configuration is valid. More... | |
| setIdent ($ident) | |
| Set current ident. More... | |
Public Member Functions inherited from LogHandlerInterface | |
| getWarning () | |
| Return warning if something is wrong with logger. More... | |
| export ($content) | |
| Output log content. More... | |
Private Member Functions | |
| getFilename ($suffixinfilename= '') | |
| Return the parsed logfile path. More... | |
Class to manage logging to a file.
Definition at line 8 of file mod_syslog_file.php.
| mod_syslog_file::checkConfiguration | ( | ) |
Return if configuration is valid.
Implements LogHandlerInterface.
Definition at line 82 of file mod_syslog_file.php.
References dol_syslog(), and getFilename().
| mod_syslog_file::configure | ( | ) |
Return array of configuration data.
Implements LogHandlerInterface.
Definition at line 63 of file mod_syslog_file.php.
| mod_syslog_file::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. |
Definition at line 133 of file mod_syslog_file.php.
References getFilename(), and print.
|
private |
Return the parsed logfile path.
| string | $suffixinfilename | When output is a file, append this suffix into default log filename. |
Definition at line 104 of file mod_syslog_file.php.
References $_SERVER.
Referenced by checkConfiguration(), and export().
| mod_syslog_file::getInfo | ( | ) |
Content of the info tooltip.
Implements LogHandlerInterface.
Definition at line 40 of file mod_syslog_file.php.
| mod_syslog_file::getName | ( | ) |
Return name of logger.
Implements LogHandlerInterface.
Definition at line 18 of file mod_syslog_file.php.
| mod_syslog_file::getVersion | ( | ) |
Version of the module ('x.y.z' or 'dolibarr' or 'experimental' or 'development')
Implements LogHandlerInterface.
Definition at line 30 of file mod_syslog_file.php.
| mod_syslog_file::isActive | ( | ) |
Is the module active ?
Implements LogHandlerInterface.
Definition at line 52 of file mod_syslog_file.php.