30 protected static $factory = null;
31 protected static $instance = null;
43 if (static::$factory === null) {
44 static::$factory = new \Plop\RecordFactory(
45 new \
Plop\Interpolator\Psr3()
60 if (static::$instance === null) {
61 static::$instance =
new static();
63 return static::$instance;
82 public function log($level, $message, array $context = array())
98 $factory = $logging->getRecordFactory();
101 $logging->setRecordFactory(static::$factory);
102 $logging->$level($message, $context);
107 $logging->setRecordFactory($factory);
log($level, $message, array $context=array())
A special logger which acts as a bridge between PSR-3 loggers and Plop.
This exception is thrown by Plop whenever a problem is detected.