/**
  * @internal
  */
 public static function includeStacktraces(HandlerInterface $handler)
 {
     $formatter = $handler->getFormatter();
     if ($formatter instanceof LineFormatter || $formatter instanceof JsonFormatter) {
         $formatter->includeStacktraces();
     }
 }
Exemple #2
0
 /**
  * {@inheritdoc}
  */
 public function getFormatter() : FormatterInterface
 {
     if ($this->handler instanceof FormattableHandlerInterface) {
         return $this->handler->getFormatter($formatter);
     }
     throw new \LogicException('The wrapped handler does not implement ' . FormattableHandlerInterface::class);
 }
Exemple #3
0
 /**
  * {@inheritdoc}
  */
 public function getFormatter()
 {
     return $this->handler->getFormatter();
 }
Exemple #4
0
 /**
  * @override
  * @inheritDoc
  */
 public function getFormatter()
 {
     return $this->model->getFormatter();
 }
 public function getFormatter()
 {
     return $this->delegate->getFormatter();
 }