$level
$level :
Simple handler wrapper that filters records based on a list of levels
It can be configured with an exact list of levels to allow, or a min/max level.
$formatter : \Monolog\Formatter\FormatterInterface
$handler : callable|\Monolog\Handler\HandlerInterface
Handler or factory callable($record, $this)
__construct(callable|\Monolog\Handler\HandlerInterface $handler, integer|array $minLevelOrList = \Monolog\Logger::DEBUG, integer $maxLevel = \Monolog\Logger::EMERGENCY, Boolean $bubble = true)
callable|\Monolog\Handler\HandlerInterface | $handler | Handler or factory callable($record, $this). |
integer|array | $minLevelOrList | A list of levels to accept or a minimum level if maxLevel is provided |
integer | $maxLevel | Maximum level to accept, only used if $minLevelOrList is not an array |
Boolean | $bubble | Whether the messages that are handled can bubble up the stack or not |
isHandling(array $record) : Boolean
Checks whether the given record will be handled by this handler.
This is mostly done for performance reasons, to avoid calling processors for nothing.
Handlers should still check the record levels within handle(), returning false in isHandling() is no guarantee that handle() will not be called, and isHandling() might not be called for a given record.
array | $record | Partial log record containing only a level key |
setFormatter(\Monolog\Formatter\FormatterInterface $formatter) : self
Sets the formatter.
\Monolog\Formatter\FormatterInterface | $formatter |
getFormatter() : \Monolog\Formatter\FormatterInterface
Gets the formatter.
setAcceptedLevels(integer|string|array $minLevelOrList = \Monolog\Logger::DEBUG, integer|string $maxLevel = \Monolog\Logger::EMERGENCY)
integer|string|array | $minLevelOrList | A list of levels to accept or a minimum level or level name if maxLevel is provided |
integer|string | $maxLevel | Maximum level or level name to accept, only used if $minLevelOrList is not an array |
getDefaultFormatter() : \Monolog\Formatter\FormatterInterface
Gets the default formatter.