src/Writer/AbstractWriter.php
protected function decorate(LogInterface $log): LogInterface
    {
        foreach ($this->getDecorators() as $decorator) {
            $log = $decorator->decorate($log);
        }

        return $log;
    }
protected function decorate(LogInterface $log): LogInterface
    {
        foreach ($this->getDecorators() as $decorator) {
            $log = $decorator->decorate($log);
        }

        return $log;
    }
Decorate $log and return new instance.

@param LogInterface $log
@return LogInterface