BlueSpice MediaWiki REL1_27
 All Classes Namespaces Files Functions Variables Groups Pages
Psr\Log\AbstractLogger Class Reference
Inheritance diagram for Psr\Log\AbstractLogger:
Collaboration diagram for Psr\Log\AbstractLogger:

Public Member Functions

 emergency ($message, array $context=array())
 
 alert ($message, array $context=array())
 
 critical ($message, array $context=array())
 
 error ($message, array $context=array())
 
 warning ($message, array $context=array())
 
 notice ($message, array $context=array())
 
 info ($message, array $context=array())
 
 debug ($message, array $context=array())
 
- Public Member Functions inherited from Psr\Log\LoggerInterface
 log ($level, $message, array $context=array())
 

Detailed Description

This is a simple Logger implementation that other Loggers can inherit from.

It simply delegates all log-level-specific methods to the log method to reduce boilerplate code that a simple Logger that does the same thing with messages regardless of the error level has to implement.

Member Function Documentation

Psr\Log\AbstractLogger::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.

Psr\Log\AbstractLogger::critical (   $message,
array  $context = array() 
)

Critical conditions.

Example: Application component unavailable, unexpected exception.

Parameters
string$message
array$context
Returns
null

Implements Psr\Log\LoggerInterface.

Psr\Log\AbstractLogger::debug (   $message,
array  $context = array() 
)

Detailed debug information.

Parameters
string$message
array$context
Returns
null

Implements Psr\Log\LoggerInterface.

Psr\Log\AbstractLogger::emergency (   $message,
array  $context = array() 
)

System is unusable.

Parameters
string$message
array$context
Returns
null

Implements Psr\Log\LoggerInterface.

Psr\Log\AbstractLogger::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.

Psr\Log\AbstractLogger::info (   $message,
array  $context = array() 
)

Interesting events.

Example: User logs in, SQL logs.

Parameters
string$message
array$context
Returns
null

Implements Psr\Log\LoggerInterface.

Psr\Log\AbstractLogger::notice (   $message,
array  $context = array() 
)

Normal but significant events.

Parameters
string$message
array$context
Returns
null

Implements Psr\Log\LoggerInterface.

Psr\Log\AbstractLogger::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.


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