2017 © Pedro Peláez
 

library artisan-log-cleaner

An artisan command to clear laravel log files

image

hedii/artisan-log-cleaner

An artisan command to clear laravel log files

  • Sunday, December 17, 2017
  • by hedii
  • Repository
  • 1 Watchers
  • 9 Stars
  • 2,190 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 5 Forks
  • 1 Open issues
  • 4 Versions
  • 29 % Grown

The README.md

Build Status Total Downloads License Latest Stable Version, (*1)

Artisan Log Cleaner

An artisan command to clear laravel log files, (*2)

Table of contents

Installation

Install via composer, (*3)

composer require hedii/artisan-log-cleaner

Add it to your providers array in config/app.php:, (*4)

Hedii\ArtisanLogCleaner\ArtisanLogCleanerServiceProvider::class

Usage

Clear all log files

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

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):, (*6)

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

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

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

The Versions

17/12 2017

dev-master

9999999-dev

An artisan command to clear laravel log files

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel log php artisan hedii artisan-log-cleaner

05/12 2017

1.0.2

1.0.2.0

An artisan command to clear laravel log files

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel log php artisan hedii artisan-log-cleaner

12/05 2017

1.0.1

1.0.1.0

An artisan command to clear laravel log files

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel log php artisan hedii artisan-log-cleaner

08/09 2016

1.0.0

1.0.0.0

An artisan command to clear laravel log files

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel log php artisan hedii artisan-log-cleaner