Package Data | |
---|---|
Maintainer Username: | pearlkrishn |
Maintainer Contact: | pearlkrishn@gmail.com (pearlkrishn) |
Package Create Date: | 2018-03-19 |
Package Last Update: | 2018-03-19 |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-12-23 03:15:15 |
Package Statistics | |
---|---|
Total Downloads: | 140 |
Monthly Downloads: | 1 |
Daily Downloads: | 0 |
Total Stars: | 0 |
Total Watchers: | 1 |
Total Forks: | 0 |
Total Open Issues: | 0 |
composer require pearl/lumen-log-rotate
To add the log rotation functionality we will use a custom service provider to configure the log instance and specify the number of log files we should be keeping.
$app->register(Pearl\LumenLogRotate\LogRotateServiceProvider::class);
To specify the number of log files we should be keeping. Default value is 5.
LOG_MAXFILE=3
To Specify the log file path. Default log path is storage/logs/lumen.log
LOG_PATH=/path/log.log
All the custom configuration should be add in .env file.
lumen-2018-03-19.log
lumen-2018-03-20.log
lumen-2018-03-21.log
lumen-2018-03-22.log
lumen-2018-03-23.log