src/Logger.php
public function addWriter(WriterInterface $writer, bool $interrupt = null): Logger
    {
        $this->writers[] = new LoggerWriter($writer, $interrupt ?: false);

        return $this;
    }
public function addWriter(WriterInterface $writer, bool $interrupt = null): Logger
    {
        $this->writers[] = new LoggerWriter($writer, $interrupt ?: false);

        return $this;
    }
Add $writer to logger.

When $interrupt is true and the writer's write method will not throw an exception, the next writer won't be
called.

@param WriterInterface $writer
@param bool|null       $interrupt
@return Logger