dolibarr 19.0.3
|
Class to manage logging to a file. 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 module 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. | |
Public Member Functions inherited from LogHandlerInterface | |
getWarning () | |
Return warning if something is wrong with logger. | |
export ($content) | |
Output log content. | |
Private Member Functions | |
getFilename ($suffixinfilename='') | |
Return the parsed logfile path. | |
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.
Reimplemented from LogHandler.
Definition at line 82 of file mod_syslog_file.php.
References dol_syslog(), and getFilename().
mod_syslog_file::configure | ( | ) |
Return array of configuration data.
Reimplemented from LogHandler.
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 138 of file mod_syslog_file.php.
References dol_now(), dol_print_date(), dolChmod(), getDolGlobalString(), and getFilename().
|
private |
Return the parsed logfile path.
string | $suffixinfilename | When output is a file, append this suffix into default log filename. |
Definition at line 105 of file mod_syslog_file.php.
References getDolGlobalInt(), and getDolGlobalString().
Referenced by checkConfiguration(), and export().
mod_syslog_file::getInfo | ( | ) |
Content of the info tooltip.
Reimplemented from LogHandler.
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')
Reimplemented from LogHandler.
Definition at line 30 of file mod_syslog_file.php.
mod_syslog_file::isActive | ( | ) |
Is the module active ?
Reimplemented from LogHandler.
Definition at line 52 of file mod_syslog_file.php.
References getDolGlobalString().