Home > php教程 > php手册 > laravel中日志为daily时如何设置最大保存天数,laraveldaily

laravel中日志为daily时如何设置最大保存天数,laraveldaily

WBOY
Release: 2016-06-13 08:44:40
Original
1944 people have browsed it

laravel中日志为daily时如何设置最大保存天数,laraveldaily

在laravel中,日志设置为daily时,默认保存七天的日志,超过则清除七天前的日志。可修改默认的设置,假如要保存30天的日志,则配置如下:

在配置文件config/app.php中添加如下代码:

‘log_max_files’ => 30,

 

修改配置后,需要重启php服务器,配置才会生效!!!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template