protected function getFileExceptionHandler($file)
    {
        $format = '%context.stacktrace%'.PHP_EOL;

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

        return $handler;
    }
protected function getFileExceptionHandler($file)
    {
        $format = '%context.stacktrace%'.PHP_EOL;

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

        return $handler;
    }
protected function getFileExceptionHandler ( $ file ) { $ format = '%context.stacktrace%' . PHP_EOL ; $ handler = new StreamHandler ( $ file , Logger :: ERROR ) ; $ handler -> setFormatter ( new ExceptionLineFormatter ( $ format ) ) ; return $ handler ; }
Exception log handler for files

@param  string      $file Path of log file
@return StreamHandler
Exception log handler for files