laravel Log日志指定文件位置 使用build方法,可以指定 driver 类型,使用 path 可以指定文件位置。 Log::build([ 'driver' => 'single', 'path' => storage_path('logs/custom.log'), ])->info('Something happened!'); return 1;