LogHandler
abstract class LogHandler (View source)
Parent class for log handlers
Properties
| string | $code | ||
| protected int | $ident | ||
| string[] | $errors |
Methods
Return name of logger
Content of the info tooltip.
Return warning if something is wrong with logger
Version of the module ('x.y.z' or 'dolibarr' or 'experimental' or 'development')
Is the logger active ?
Configuration variables of the module
Function that checks if the configuration is valid.
Set current ident.
Export the message
Details
string
getName()
Return 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()
Configuration variables of the module
@return array<array{name:string,constant:string,default:string,css?:string}> Return array of configuration data
bool
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
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