$processors
$processors : callable[]
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.
$processors : callable[]
$handler : callable|\Monolog\Handler\HandlerInterface
Handler or factory callable($record, $this)
$acceptedLevels : int[]
Minimum level for logs that are passed to handler
$bubble : bool
Whether the messages that are handled can bubble up the stack or not
__construct(callable|\Monolog\Handler\HandlerInterface $handler, int|array $minLevelOrList = Logger::DEBUG, int|string $maxLevel = Logger::EMERGENCY, bool $bubble = true) : mixed
callable|\Monolog\Handler\HandlerInterface | $handler | Handler or factory callable($record|null, $filterHandler). |
int|array | $minLevelOrList | A list of levels to accept or a minimum level if maxLevel is provided |
int|string | $maxLevel | Maximum level to accept, only used if $minLevelOrList is not an array |
bool | $bubble | Whether the messages that are handled can bubble up the stack or not |
setAcceptedLevels(int|string|array $minLevelOrList = Logger::DEBUG, int|string $maxLevel = Logger::EMERGENCY) : self
int|string|array | $minLevelOrList | A list of levels to accept or a minimum level or level name if maxLevel is provided |
int|string | $maxLevel | Maximum level or level name to accept, only used if $minLevelOrList is not an array |