Plop
A simple logging library for PHP
|
A special logger which acts as a bridge between PSR-3 loggers and Plop. More...
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 |
A special logger which acts as a bridge between PSR-3 loggers and Plop.
Definition at line 28 of file Psr3Logger.php.
Plop\Psr3Logger::__construct | ( | ) |
Construct a new PSR-3 compatible logger.
Definition at line 41 of file Psr3Logger.php.
|
static |
Return a PSR-3 compatible logger.
Definition at line 58 of file Psr3Logger.php.
Plop\Psr3Logger::log | ( | $level, | |
$message, | |||
array | $context = array() |
||
) |
Log some message.
mixed | $level | Level for the message (one of the constants defined in the Psr::Log::LogLevel class). |
string | $message | Actual 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 | $context | Context for the log message. |
Definition at line 82 of file Psr3Logger.php.
References Plop\Plop\getInstance().