protected function getFileHandler($file)
    {
        $format = '[%datetime%] %channel%.%level_name%: %message% %context% %extra%'.PHP_EOL;

        $handler = new StreamHandler($file, Logger::INFO);
        $handler->setFormatter(new LineFormatter($format));

        return new DummyExceptionHandler($handler);
    }