mirror of
https://github.com/Seldaek/monolog.git
synced 2025-02-23 22:42:38 +01:00
Added some docs
This commit is contained in:
parent
156e2ace46
commit
efc2bd656b
@ -108,6 +108,7 @@ class Logger
|
||||
'datetime' => new \DateTime(),
|
||||
'extra' => array(),
|
||||
);
|
||||
// check if any message will handle this message
|
||||
$handlerKey = null;
|
||||
foreach ($this->handlers as $key => $handler) {
|
||||
if ($handler->isHandling($message)) {
|
||||
@ -115,9 +116,11 @@ class Logger
|
||||
break;
|
||||
}
|
||||
}
|
||||
// none found
|
||||
if (null === $handlerKey) {
|
||||
return false;
|
||||
}
|
||||
// found at least one, process message and dispatch it
|
||||
foreach ($this->processors as $processor) {
|
||||
$message = call_user_func($processor, $message, $this);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user