ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
SAML2\Compat\Ssp\Logger Class Reference
+ Inheritance diagram for SAML2\Compat\Ssp\Logger:
+ Collaboration diagram for SAML2\Compat\Ssp\Logger:

Public Member Functions

 emergency ($message, array $context=array())
 System is unusable. More...
 
 alert ($message, array $context=array())
 Action must be taken immediately. More...
 
 critical ($message, array $context=array())
 Critical conditions. More...
 
 error ($message, array $context=array())
 Runtime errors that do not require immediate action but should typically be logged and monitored. More...
 
 warning ($message, array $context=array())
 Exceptional occurrences that are not errors. More...
 
 notice ($message, array $context=array())
 Normal but significant events. More...
 
 info ($message, array $context=array())
 Interesting events. More...
 
 debug ($message, array $context=array())
 Detailed debug information. More...
 
 log ($level, $message, array $context=array())
 Logs with an arbitrary level. More...
 

Detailed Description

Definition at line 7 of file Logger.php.

Member Function Documentation

◆ alert()

SAML2\Compat\Ssp\Logger::alert (   $message,
array  $context = array() 
)

Action must be taken immediately.

Example: Entire website down, database unavailable, etc. This should trigger the SMS alerts and wake you up.

Parameters
string$message
array$context
Returns
null

Implements Psr\Log\LoggerInterface.

Definition at line 31 of file Logger.php.

References $message, and SimpleSAML\Logger\alert().

32  {
33  \SimpleSAML\Logger::alert($message . var_export($context, true));
34  }
catch(Exception $e) $message
static alert($string)
Definition: Logger.php:157
+ Here is the call graph for this function:

◆ critical()

SAML2\Compat\Ssp\Logger::critical (   $message,
array  $context = array() 
)

Critical conditions.

Example: Application component unavailable, unexpected exception.

Parameters
string$message
array$context
Returns
null

Implements Psr\Log\LoggerInterface.

Definition at line 45 of file Logger.php.

References $message, and SimpleSAML\Logger\critical().

46  {
47  \SimpleSAML\Logger::critical($message . var_export($context, true));
48  }
catch(Exception $e) $message
static critical($string)
Definition: Logger.php:146
+ Here is the call graph for this function:

◆ debug()

SAML2\Compat\Ssp\Logger::debug (   $message,
array  $context = array() 
)

Detailed debug information.

Parameters
string$message
array$context
Returns
null

Implements Psr\Log\LoggerInterface.

Definition at line 111 of file Logger.php.

References $message, and SimpleSAML\Logger\debug().

112  {
113  \SimpleSAML\Logger::debug($message . var_export($context, true));
114  }
static debug($string)
Definition: Logger.php:213
catch(Exception $e) $message
+ Here is the call graph for this function:

◆ emergency()

SAML2\Compat\Ssp\Logger::emergency (   $message,
array  $context = array() 
)

System is unusable.

Parameters
string$message
array$context
Returns
null

Implements Psr\Log\LoggerInterface.

Definition at line 16 of file Logger.php.

References $message, and SimpleSAML\Logger\emergency().

17  {
18  \SimpleSAML\Logger::emergency($message . var_export($context, true));
19  }
catch(Exception $e) $message
static emergency($string)
Definition: Logger.php:135
+ Here is the call graph for this function:

◆ error()

SAML2\Compat\Ssp\Logger::error (   $message,
array  $context = array() 
)

Runtime errors that do not require immediate action but should typically be logged and monitored.

Parameters
string$message
array$context
Returns
null

Implements Psr\Log\LoggerInterface.

Definition at line 58 of file Logger.php.

References $message, and SimpleSAML\Logger\error().

59  {
60  \SimpleSAML\Logger::error($message . var_export($context, true));
61  }
catch(Exception $e) $message
static error($string)
Definition: Logger.php:168
+ Here is the call graph for this function:

◆ info()

SAML2\Compat\Ssp\Logger::info (   $message,
array  $context = array() 
)

Interesting events.

Example: User logs in, SQL logs.

Parameters
string$message
array$context
Returns
null

Implements Psr\Log\LoggerInterface.

Definition at line 99 of file Logger.php.

References $message, and SimpleSAML\Logger\info().

100  {
101  \SimpleSAML\Logger::info($message . var_export($context, true));
102  }
static info($string)
Definition: Logger.php:201
catch(Exception $e) $message
+ Here is the call graph for this function:

◆ log()

SAML2\Compat\Ssp\Logger::log (   $level,
  $message,
array  $context = array() 
)

Logs with an arbitrary level.

Parameters
mixed$level
string$message
array$context
Returns
null

Implements Psr\Log\LoggerInterface.

Definition at line 124 of file Logger.php.

References $message, SimpleSAML\Logger\alert(), SimpleSAML\Logger\critical(), DEBUG, SimpleSAML\Logger\debug(), SimpleSAML\Logger\emergency(), SimpleSAML\Logger\error(), SimpleSAML\Logger\info(), SimpleSAML\Logger\notice(), and SimpleSAML\Logger\warning().

125  {
126  switch ($level) {
127  case \SimpleSAML\Logger::ALERT:
129  break;
130  case \SimpleSAML\Logger::CRIT:
132  break;
135  break;
136  case \SimpleSAML\Logger::EMERG:
138  break;
139  case \SimpleSAML\Logger::ERR:
141  break;
142  case \SimpleSAML\Logger::INFO:
144  break;
145  case \SimpleSAML\Logger::NOTICE:
147  break;
148  case \SimpleSAML\Logger::WARNING:
150  }
151  }
static debug($string)
Definition: Logger.php:213
const DEBUG
static notice($string)
Definition: Logger.php:190
static info($string)
Definition: Logger.php:201
catch(Exception $e) $message
static warning($string)
Definition: Logger.php:179
static error($string)
Definition: Logger.php:168
static critical($string)
Definition: Logger.php:146
static emergency($string)
Definition: Logger.php:135
static alert($string)
Definition: Logger.php:157
+ Here is the call graph for this function:

◆ notice()

SAML2\Compat\Ssp\Logger::notice (   $message,
array  $context = array() 
)

Normal but significant events.

Parameters
string$message
array$context
Returns
null

Implements Psr\Log\LoggerInterface.

Definition at line 85 of file Logger.php.

References $message, and SimpleSAML\Logger\notice().

86  {
87  \SimpleSAML\Logger::notice($message . var_export($context, true));
88  }
static notice($string)
Definition: Logger.php:190
catch(Exception $e) $message
+ Here is the call graph for this function:

◆ warning()

SAML2\Compat\Ssp\Logger::warning (   $message,
array  $context = array() 
)

Exceptional occurrences that are not errors.

Example: Use of deprecated APIs, poor use of an API, undesirable things that are not necessarily wrong.

Parameters
string$message
array$context
Returns
null

Implements Psr\Log\LoggerInterface.

Definition at line 73 of file Logger.php.

References $message, and SimpleSAML\Logger\warning().

74  {
75  \SimpleSAML\Logger::warning($message . var_export($context, true));
76  }
catch(Exception $e) $message
static warning($string)
Definition: Logger.php:179
+ Here is the call graph for this function:

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