25 $monologLogger =
new Logger(
'');
27 foreach ($monologLogger->getLevels() as $levelName => $level) {
28 $levels[] = array($levelName, $level);
39 $message =
'Hello, world! ' . $level;
40 $context = array(
'foo' =>
'bar',
'level' => $level);
42 $psrLogger = $this->getMock(
'Psr\Log\NullLogger');
43 $psrLogger->expects($this->
once())
48 $handler->handle(array(
'level' => $level,
'level_name' => $levelName,
'message' =>
$message,
'context' =>
$context));
Proxies log messages to an existing PSR-3 compliant logger.
testHandlesAllLevels($levelName, $level)
logLevelProvider
catch(Exception $e) $message
once($eventName, callable $callBack, $priority=100)
Subscribe to an event exactly once.