Seldaek/monolog · error · LogicException

The wrapped handler does not implement Monolog\Handler\Proce

Error message

The wrapped handler does not implement Monolog\Handler\ProcessableHandlerInterface

What it means

Error "The wrapped handler does not implement Monolog\Handler\ProcessableHandlerInterface" thrown in Seldaek/monolog.

Source

Thrown at src/Monolog/Handler/HandlerWrapper.php:87

     * @inheritDoc
     */
    public function close(): void
    {
        $this->handler->close();
    }

    /**
     * @inheritDoc
     */
    public function pushProcessor(callable $callback): HandlerInterface
    {
        if ($this->handler instanceof ProcessableHandlerInterface) {
            $this->handler->pushProcessor($callback);

            return $this;
        }

        throw new \LogicException('The wrapped handler does not implement ' . ProcessableHandlerInterface::class);
    }

    /**
     * @inheritDoc
     */
    public function popProcessor(): callable
    {
        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

View on GitHub (pinned to 57eb102834)

When it happens

Trigger: Thrown at src/Monolog/Handler/HandlerWrapper.php:87 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/d9a6a51305efe76b. Report an issue: GitHub.