1.config\logging.php
2. ‘errorlog_test’ => [
‘driver’ => ‘daily’,
‘path’ => storage_path(‘logs/errorlog_test.log’),
‘level’ => ‘debug’,
‘days’ => 14,
],
3.调用方式
Log::channel(‘errorlog_test’)->info(‘test’);
Laravel自定义error log
最新推荐文章于 2021-04-04 05:22:51 发布