1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-10-22 17:16:18 +02:00

Add getters for handlers/processors, fixes #363

This commit is contained in:
Jordi Boggiano
2014-05-01 17:55:56 +02:00
parent 65026b610f
commit 467e30a9c9

View File

@@ -172,6 +172,14 @@ class Logger implements LoggerInterface
return array_shift($this->handlers);
}
/**
* @return HandlerInterface[]
*/
public function getHandlers()
{
return $this->handlers;
}
/**
* Adds a processor on to the stack.
*
@@ -199,6 +207,14 @@ class Logger implements LoggerInterface
return array_shift($this->processors);
}
/**
* @return callable[]
*/
public function getProcessors()
{
return $this->processors;
}
/**
* Adds a log record.
*