Seldaek/monolog · error · LogicException
The wrapped handler does not implement Monolog\Handler\Forma
Error message
The wrapped handler does not implement Monolog\Handler\FormattableHandlerInterface
What it means
Error "The wrapped handler does not implement Monolog\Handler\FormattableHandlerInterface" thrown in Seldaek/monolog.
Source
Thrown at src/Monolog/Handler/HandlerWrapper.php:113
if ($this->handler instanceof ProcessableHandlerInterface) {
return $this->handler->popProcessor();
}
throw new \LogicException('The wrapped handler does not implement ' . ProcessableHandlerInterface::class);
}
/**
* @inheritDoc
*/
public function setFormatter(FormatterInterface $formatter): HandlerInterface
{
if ($this->handler instanceof FormattableHandlerInterface) {
$this->handler->setFormatter($formatter);
return $this;
}
throw new \LogicException('The wrapped handler does not implement ' . FormattableHandlerInterface::class);
}
/**
* @inheritDoc
*/
public function getFormatter(): FormatterInterface
{
if ($this->handler instanceof FormattableHandlerInterface) {
return $this->handler->getFormatter();
}
throw new \LogicException('The wrapped handler does not implement ' . FormattableHandlerInterface::class);
}
public function reset(): void
{
if ($this->handler instanceof ResettableInterface) {
$this->handler->reset();View on GitHub (pinned to 57eb102834)
When it happens
Trigger: Thrown at src/Monolog/Handler/HandlerWrapper.php:113 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of Seldaek/monolog@57eb102834 (2026-08-17).
Data as JSON: /api/errors/94739b77408f1efb.
Report an issue: GitHub.