How to set the maximum retention days when laravel logs are daily? laraveldaily_PHP tutorial

Source: Internet
Author: User
How to set the maximum number of days to save laraveldaily when laravel logs are daily. How to set the maximum number of days when laravel logs are daily? in laraveldaily, when logs are set to daily, logs are saved for seven days by default. if the number of days exceeds the limit, logs generated before seven days are cleared. You can set the maximum number of days to save when laravel logs are daily.

In laravel, when the log is set to daily, the logs are saved for seven days by default. if the log exceeds the limit, the logs generated seven days ago are cleared. You can modify the default settings. if you want to save logs for 30 days, the configuration is as follows:

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

'Log _ max_files '=> 30,

After you modify the configuration, you need to restart the php server to make the configuration take effect !!!

When logging is set to daily in laravel, logs of seven days are saved by default. logs of the past seven days are cleared if they are exceeded. Yes...

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.