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

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

WBOY
WBOYOriginal
2016-06-13 08:44:401939browse

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

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

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

‘log_max_files’ => 30,

 

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

Statement:
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