dolibarr  9.0.0
Public Member Functions | List of all members
mod_syslog_chromephp Class Reference

Class to manage logging to ChromPHP. More...

+ Inheritance diagram for mod_syslog_chromephp:
+ Collaboration diagram for mod_syslog_chromephp:

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...
 
 getWarning ()
 Return warning if something is wrong with logger. More...
 
 isActive ()
 Is the module active ? More...
 
 configure ()
 Return array of configuration data. More...
 
 checkConfiguration ()
 Return if configuration is valid. More...
 
 export ($content)
 Output log content. 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...
 

Detailed Description

Class to manage logging to ChromPHP.

Definition at line 8 of file mod_syslog_chromephp.php.

Member Function Documentation

◆ checkConfiguration()

mod_syslog_chromephp::checkConfiguration ( )

Return if configuration is valid.

Returns
array Array of errors. Empty array if ok.

Implements LogHandlerInterface.

Definition at line 116 of file mod_syslog_chromephp.php.

◆ configure()

mod_syslog_chromephp::configure ( )

Return array of configuration data.

Returns
array Return array of configuration data

Implements LogHandlerInterface.

Definition at line 96 of file mod_syslog_chromephp.php.

◆ export()

mod_syslog_chromephp::export (   $content)

Output log content.

We also start output buffering at first log write.

Parameters
array$contentContent to log
Returns
null|false

Implements LogHandlerInterface.

Definition at line 144 of file mod_syslog_chromephp.php.

◆ getInfo()

mod_syslog_chromephp::getInfo ( )

Content of the info tooltip.

Returns
string

Implements LogHandlerInterface.

Definition at line 37 of file mod_syslog_chromephp.php.

◆ getName()

mod_syslog_chromephp::getName ( )

Return name of logger.

Returns
string Name of logger

Implements LogHandlerInterface.

Definition at line 17 of file mod_syslog_chromephp.php.

◆ getVersion()

mod_syslog_chromephp::getVersion ( )

Version of the module ('x.y.z' or 'dolibarr' or 'experimental' or 'development')

Returns
string

Implements LogHandlerInterface.

Definition at line 27 of file mod_syslog_chromephp.php.

◆ getWarning()

mod_syslog_chromephp::getWarning ( )

Return warning if something is wrong with logger.

Returns
string

Implements LogHandlerInterface.

Definition at line 47 of file mod_syslog_chromephp.php.

◆ isActive()

mod_syslog_chromephp::isActive ( )

Is the module active ?

Returns
int -1 if not active, 0 if active but lib/path not found, 1 if OK

Implements LogHandlerInterface.

Definition at line 59 of file mod_syslog_chromephp.php.


The documentation for this class was generated from the following file: