Home > Backend Development > PHP Tutorial > How to set the maximum number of days to save when the log in laravel is daily, laraveldaily_PHP tutorial

How to set the maximum number of days to save when the log in laravel is daily, laraveldaily_PHP tutorial

WBOY
Release: 2016-07-12 08:57:17
Original
1386 people have browsed it

How to set the maximum number of days to save when the log is daily in laravel, laraveldaily

In laravel, when the log is set to daily, logs for seven days will be saved by default. If the log exceeds seven days, the logs from seven days ago will be cleared. log. The default settings can be modified. If you want to save 30 days of logs, the configuration is as follows:

Add the following code in the configuration file config/app.php:

‘log_max_files’ => 30,

After modifying the configuration, you need to restart the php server for the configuration to take effect! ! !

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/1109449.htmlTechArticleHow to set the maximum number of days to save when the log is daily in laravel, laraveldaily In laravel, when the log is set to daily, the default Save logs for seven days, and clear logs older than seven days. Yes...
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 Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template