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

Public Member Functions

 log ($level, $message, array $context=array())
 
- Public Member Functions inherited from Psr\Log\AbstractLogger
 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())
 

Detailed Description

This Logger can be used to avoid conditional log calls

Logging should always be optional, and if no logger is provided to your library creating a NullLogger instance to have something to throw logs at is a good way to avoid littering your code with if ($this->logger) { } blocks.

Member Function Documentation

Psr\Log\NullLogger::log (   $level,
  $message,
array  $context = array() 
)

Logs with an arbitrary level.

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

Implements Psr\Log\LoggerInterface.


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