eZPublish  4.7
eZClusterEventLogger Interface Reference

File containing the eZClusterEventLogger class. More...

+ Inheritance diagram for eZClusterEventLogger:

Public Member Functions

 logError ($errMsg, $context=null)
 Logs $errMsg. More...
 

Detailed Description

File containing the eZClusterEventLogger class.

Version
4.7.0 Interface for eZClusterEvent loggers.

Cluster events can be used either inside eZ Publish (cache read/write, file handling...), but also through index_cluster.php in order to serve binary files. In the last case, the process should be as fast as possible and consume less resources as possible. Thus we should not include heavy dependencies on eZ Publish utility classes like eZDebug in order to log errors. This interface is to be implemented by classes dedicated to error logging, depending on context.

Member Function Documentation

eZClusterEventLogger::logError (   $errMsg,
  $context = null 
)

Logs $errMsg.

Parameters
string$errMsgError message to be logged
string$contextContext where the error occurred
Returns
void

Implemented in eZClusterEventLoggerEzdebug, and eZClusterEventLoggerPhp.


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