Plop
A simple logging library for PHP
Plop\Psr3Logger Class Reference

A special logger which acts as a bridge between PSR-3 loggers and Plop. More...

+ Inheritance diagram for Plop\Psr3Logger:

Public Member Functions

 __construct ()
 
 log ($level, $message, array $context=array())
 

Static Public Member Functions

static getInstance ()
 

Static Protected Attributes

static $factory = null
 
static $instance = null
 

Detailed Description

A special logger which acts as a bridge between PSR-3 loggers and Plop.

Definition at line 28 of file Psr3Logger.php.

Constructor & Destructor Documentation

Plop\Psr3Logger::__construct ( )

Construct a new PSR-3 compatible logger.

Note
The logger's interpolator is automatically set to Plop::Interpolator::Psr3 to match the requirements of the PSR-3 specification.

Definition at line 41 of file Psr3Logger.php.

Member Function Documentation

static Plop\Psr3Logger::getInstance ( )
static

Return a PSR-3 compatible logger.

Note
The logger's interpolator is automatically set to Plop::Interpolator::Psr3 to match the requirements of the PSR-3 specification.

Definition at line 58 of file Psr3Logger.php.

Plop\Psr3Logger::log (   $level,
  $message,
array  $context = array() 
)

Log some message.

Parameters
mixed$levelLevel for the message (one of the constants defined in the Psr::Log::LogLevel class).
string$messageActual message to log. The message may contain placeholders in the form {name} to embed the value of the key matching the given name in the $context argument.
array$contextContext for the log message.

Definition at line 82 of file Psr3Logger.php.

References Plop\Plop\getInstance().


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