Skip to content

zittogustavo/laravel-command-logs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Laravel Commands Log

Create logs for laravel schedule commands.

Overview

This simple package create a log for each schedule commmand that is executed in your Laravel project. The log is store in the storage/logs folder with name as: "command_name-date" (ex: inspire-2020-12-04.log).

Installation

  • Install via composer

composer require zittogustavo/laravel-command-logs

Usage

In your app/Console/Kernel.php file:

  • Import vendor as: use Zitto\Commandlog\CommandLog;

  • Add following function:

protected function defineConsoleSchedule() {
   $this->app->instance(
     Schedule::class,
     $schedule = new CommandLog()
   );

   $this->schedule($schedule);
}

Credits

This package was developed by Gustavo Zitto.

License

This project is released under the [MIT License] (https://opensource.org/licenses/MIT).

About

Create logs for laravel commands.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages