项目作者: touchdesign

项目描述 :
Rotate log files.
高级语言: PHP
项目地址: git://github.com/touchdesign/logrotate-bundle.git
创建时间: 2020-10-15T16:16:54Z
项目社区:https://github.com/touchdesign/logrotate-bundle

开源协议:

下载


Logrotate bundle

Install

  1. composer require touchdesign/logrotate-bundle

Usage

  1. bin/console touch:logrotate:rotate /var/log/example.log [--keep=5]
  2. bin/console touch:logrotate:purge /var/log/example.log

Configure

Can easily configured by EnvVars:

  1. LOGROTATE_KEEP=3 # Number of log file to keep, default is 3