Laravel log file based on date Ask Question

http://laravel.com/

http://kejyun.github.io/Laravel-4-Docum ... roduction/
回覆文章
yehlu
Site Admin
文章: 3245
註冊時間: 2004-04-15 17:20:21
來自: CodeCharge Support Engineer

Laravel log file based on date Ask Question

文章 yehlu »

https://stackoverflow.com/questions/355 ... ed-on-date

It's actually a lot simpler than that. In your config/app.php you'll see the line:

代碼: 選擇全部

'log' => 'single',
closer to the bottom of the file. Laravel by default uses the single method, which stores all errors in a single, expanding file. If you change this line to:

代碼: 選擇全部

'log' => 'daily',
it will tell Laravel that you'd prefer to have multiple logs, each suffixed with the date of the when the error occurs.

There's a few other methods available, so be sure to check out the official documentation for more info.
yehlu
Site Admin
文章: 3245
註冊時間: 2004-04-15 17:20:21
來自: CodeCharge Support Engineer

Re: Laravel log file based on date Ask Question

文章 yehlu »

.env

代碼: 選擇全部

APP_LOG=daily
回覆文章

回到「laravel」