pearl/lumen-log-rotate
Larablocks Analysis
pearl/lumen-log-rotate works with any PHP project: the latest release (1.0, Mar 19, 2018) doesn't depend on Laravel.
Recommendation checks
Not advisedNot advised: no release or commit in over 2 years.
- No release or commit in over 2 years
- No release in the last 12 months (last: Mar 19, 2018)
- 0 downloads a month (needs 10,000)
- 0 GitHub stars (needs 100)
State
Likely abandoned- No release or commit in over 2 years.
- Last stable release: Mar 19, 2018.
- No releases in the last 12 months.
- First released: Mar 19, 2018.
- 0 open issues on GitHub.
Data from Packagist and GitHub, checked by Larablocks on Nov 28, 2026.
| Install | |
|---|---|
composer require pearl/lumen-log-rotate |
|
| Latest Version: | 1.0 |
| PHP: | >=5.6.4 |
| License: | MIT |
| Last Updated: | Mar 19, 2018 |
| Links: | GitHub · Packagist |
Rotating log file in the Lumen framework.
Installation
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.
- Add the service provider in bootstrap/app.php
$app->register(Pearl\LumenLogRotate\LogRotateServiceProvider::class);
Custom Options:
-
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.
Logs folder view :
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
Related Packages
This package allows you to send data for logging to the HTTP daemon associated w...
Laravel plugin for displaying query results as a table with built-in filtering/s...
Version History
| Version | Released | PHP | License |
|---|---|---|---|
| 1.0 | >=5.6.4 | MIT |