Lines Matching refs:handler
41 protected $handler; variable in Monolog\\Handler\\SamplingHandler
51 …* @param callable|HandlerInterface $handler Handler or factory callable($record|null, $samplingHan…
54 public function __construct($handler, int $factor) argument
57 $this->handler = $handler;
60 if (!$this->handler instanceof HandlerInterface && !is_callable($this->handler)) {
61 …throw new \RuntimeException("The given handler (".json_encode($this->handler).") is not a callable…
95 if (!$this->handler instanceof HandlerInterface) {
96 $this->handler = ($this->handler)($record, $this);
97 if (!$this->handler instanceof HandlerInterface) {
102 return $this->handler;
110 $handler = $this->getHandler();
111 if ($handler instanceof FormattableHandlerInterface) {
112 $handler->setFormatter($formatter);
117 …throw new \UnexpectedValueException('The nested handler of type '.get_class($handler).' does not s…
125 $handler = $this->getHandler();
126 if ($handler instanceof FormattableHandlerInterface) {
127 return $handler->getFormatter();
130 …throw new \UnexpectedValueException('The nested handler of type '.get_class($handler).' does not s…