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