request->ip(),
'rq_time' => sprintf("%.2f", $rq_time),
];
logger()->channel('access...ConvertEmptyStringsToNull::class,
\App\Http\Middleware\AccessLog::class
];
增加一下配置
config/logging.php
'access...' => [
'driver' => 'daily',
'path' => env('LOG_PATH_ACCESS', storage_path('logs.../access/laravel.log')),
'level' => env('LOG_LEVEL', 'debug'),
'days' => 14,