2017 © Pedro Peláez
 

library lumen-log-rotate

Rotating log file in the Lumen framework

image

pearl/lumen-log-rotate

Rotating log file in the Lumen framework

  • Monday, March 19, 2018
  • by pearlkrishn
  • Repository
  • 0 Watchers
  • 0 Stars
  • 25 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 32 % Grown

The README.md

Rotating log file in the Lumen framework.

Installation

composer require pearl/lumen-log-rotate, (*1)

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., (*2)

  • Add the service provider in bootstrap/app.php

$app->register(Pearl\LumenLogRotate\LogRotateServiceProvider::class);, (*3)

Custom Options:

  • To specify the number of log files we should be keeping. Default value is 5., (*4)

    LOG_MAXFILE=3, (*5)

  • To Specify the log file path. Default log path is storage/logs/lumen.log, (*6)

    LOG_PATH=/path/log.log, (*7)

    All the custom configuration should be add in .env file., (*8)

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

The Versions

19/03 2018

dev-master

9999999-dev

Rotating log file in the Lumen framework

  Sources   Download

MIT

The Requires

 

by Avatar pearlkrishn

log rotate log rotating lumen framework

19/03 2018

1.0

1.0.0.0

Rotating log file in the Lumen framework

  Sources   Download

MIT

The Requires

 

by Avatar pearlkrishn

log rotate log rotating lumen framework