1
0
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:
Jordi Boggiano 2011-02-25 22:13:23 +01:00
parent 156e2ace46
commit efc2bd656b

View File

@ -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);
}