pearl/lumen-log-rotate 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

pearl/lumen-log-rotate

Composer 安装命令:

composer require pearl/lumen-log-rotate

包简介

Rotating log file in the Lumen framework

README 文档

README

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

统计信息

  • 总下载量: 143
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-03-19

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固