public function download(RequestListener $listener, $date)
    {
        $filename = app('logger.filesystem')->getLogFilename($date);
        $path     = dirname(config('request-logger.logger.file')) . DIRECTORY_SEPARATOR . $filename;
        if (!file_exists($path)) {
            return $listener->downloadFailed();
        }
        return response()->download($path);
    }