Home > php教程 > php手册 > body text

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

WBOY
Release: 2016-06-13 08:44:40
Original
1901 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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!