hedii/artisan-log-cleaner 问题修复 & 功能扩展

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

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

hedii/artisan-log-cleaner

最新稳定版本:8.0.0

Composer 安装命令:

composer require hedii/artisan-log-cleaner

包简介

An artisan command to clear laravel log files

README 文档

README

Build Status Total Downloads License Latest Stable Version

Artisan Log Cleaner

An artisan command to clear laravel log files

Table of contents

Installation

Install via composer

composer require hedii/artisan-log-cleaner

Add it to your providers array in config/app.php:

Hedii\ArtisanLogCleaner\ArtisanLogCleanerServiceProvider::class

Usage

Clear all log files

Run this command to clear all log files in the log directory (storage/logs):

php artisan log:clear

Clear all log files except the last one

Run this command to clear all log files except the last one in the log directory (storage/logs):

php artisan log:clear --keep-last

Clear all log files except specified file names

Run this command to clear all log files except the specified files in the option. Specify file name without extension. Can be combined with --keep-last option.

php artisan log:clear --keep="keptLog"

Automated cleanup of log files

Add this to the App\Console\Kernel schedule method to ensure daily cleanup of old log files

$schedule->command('log:clear --keep-last')->daily();

Testing

composer test

License

hedii/artisan-log-cleaner is released under the MIT Licence. See the bundled LICENSE file for details.

统计信息

  • 总下载量: 58.89k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 41
  • 点击次数: 3
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 41
  • Watchers: 1
  • Forks: 14
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 未知

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固