ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
SimpleSAML\Logger\LoggingHandlerInterface Interface Reference
+ Inheritance diagram for SimpleSAML\Logger\LoggingHandlerInterface:
+ Collaboration diagram for SimpleSAML\Logger\LoggingHandlerInterface:

Public Member Functions

 __construct (\SimpleSAML_Configuration $config)
 Constructor for log handlers. More...
 
 log ($level, $string)
 Log a message to its destination. More...
 
 setLogFormat ($format)
 Set the format desired for the logs. More...
 

Detailed Description

Definition at line 12 of file LoggingHandlerInterface.php.

Constructor & Destructor Documentation

◆ __construct()

SimpleSAML\Logger\LoggingHandlerInterface::__construct ( \SimpleSAML_Configuration  $config)

Constructor for log handlers.

It must accept receiving a object.

Parameters
\SimpleSAML_Configuration$configThe configuration to use in this log handler.

Implemented in SimpleSAML\Logger\ErrorLogLoggingHandler, SimpleSAML\Logger\FileLoggingHandler, SimpleSAML\Logger\SyslogLoggingHandler, and SimpleSAML\Logger\StandardErrorLoggingHandler.

Member Function Documentation

◆ log()

SimpleSAML\Logger\LoggingHandlerInterface::log (   $level,
  $string 
)

Log a message to its destination.

Parameters
int$levelThe log level.
string$stringThe message to log.

Implemented in SimpleSAML\Logger\FileLoggingHandler, SimpleSAML\Logger\ErrorLogLoggingHandler, and SimpleSAML\Logger\SyslogLoggingHandler.

◆ setLogFormat()

SimpleSAML\Logger\LoggingHandlerInterface::setLogFormat (   $format)

Set the format desired for the logs.

Parameters
string$formatThe format used for logs.

Implemented in SimpleSAML\Logger\FileLoggingHandler, SimpleSAML\Logger\ErrorLogLoggingHandler, and SimpleSAML\Logger\SyslogLoggingHandler.


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