mod_syslog_syslog
class mod_syslog_syslog extends LogHandler (View source)
Class to manage logging to syslog
Properties
| $code | |||
| protected int | $ident | from LogHandler | |
| string[] | $errors | from LogHandler |
Methods
string
getName()
Return name of logger
string
getInfo()
Content of the info tooltip.
string
getVersion()
Version of the module ('x.y.z' or 'dolibarr' or 'experimental' or 'development')
int<0, 1>
isActive()
Is the logger active ?
configure()
Return array of configuration data
bool
checkConfiguration()
Return if configuration is valid
void
export(array{level: int, ip: string, ospid: string, osuser: string, message: string} $content, string $suffixinfilename = '')
Export the message
Details
string
getName()
Return name of logger
@return string Name of logger
string
getInfo()
Content of the info tooltip.
string
getWarning()
Return warning if something is wrong with logger
string
getVersion()
Version of the module ('x.y.z' or 'dolibarr' or 'experimental' or 'development')
int<0, 1>
isActive()
Is the logger active ?
configure()
Return array of configuration data
@return array<array{name:string,constant:string,default:string,css?:string}> Return array of configuration data
bool
checkConfiguration()
Return if configuration is valid
@return bool True if ok.
void
setIdent(int<-1, 1> $ident)
Set current ident.
void
export(array{level: int, ip: string, ospid: string, osuser: string, message: string} $content, string $suffixinfilename = '')
Export the message