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);
    }
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);
    }
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 ) ; }
Log handler for files

@param  string      $file Path of log file
@return DummyExceptionHandler
Log handler for files