dainsys/clear-laravel-logs
Composer 安装命令:
composer require dainsys/clear-laravel-logs
包简介
Clear Laravel log files
README 文档
README
Allows to list or delete all laravel...log logs files
Installation
- Step 1: Add the following entry to your composer.json file:
"repositories": [ { "type": "git", "url": "https://github.com/Yismen/clear-laravel-logs.git" } ]
- Step 2: Run
composer require dainsys/clear-laravel-logscommand to install as a dependency - Step 3: The Package should be auto-discovered by Laravel. However, you could all register it in your config.app file within the providers array:
'providers' => [ Dainsys\ClearLogs\ClearLogsServiceProvider::class, ]
Ussage
- To just list the log files, run without any argument:
php artisan dainsys:laravel-logs
- To remove all existing log files, pass the --clear flag
php artisan dainsys:laravel-logs --clear
- By default, the last 8 files are keept. To override the number of files to preserve, update the --keep flag
php artisan dainsys:laravel-logs --clear --keep=0
- By default, the package search for any file starting with 'laravel-'. To override, pass the desired starting file name as an option
php artisan dainsys:laravel-logs new_file_name --clear
统计信息
- 总下载量: 496
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-11-13