Home  >  Article  >  Backend Development  >  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
WBOYOriginal
2016-07-12 08:57:171370browse

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...
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