逆天西瓜 的个人博客 / 0 / 2 / 创建于 4年前 / 更新于 4年前
日志配置路径:config/logging.php
'api' => [ 'driver' => 'daily', 'path' => storage_path('logs/api.log'), 'level' => 'info', 'days' => 14, 'permission' => 0646, ],
注意 driver 是 daily,days是14天。调用:
Log::channel('api')->notice();
本作品采用《CC 协议》,转载必须注明作者和本文链接
建议写清楚配置文件路径,不然新手是看不懂的。
请问14天是什么意思
我要举报该,理由是:
推荐文章: