This package allows us to write the execution of our task to a centralised log for auditing purposes.
You can install the package via composer:
composer require armcanada/tasklogger
Extend your command class with Armcanada\TaskLogger\Commands\LoggableCommand and then wrap your task handling code in the logExecution
method.
<?php
namespace App\Console;
use Armcanada\TaskLogger\Commands\LoggableCommand;
class SendTelusLineReport extends LoggableCommand
{
protected $signature = 'task_signature';
protected $description = 'Task description';
public function handle()
{
$this->logExecution(function () {
// Your code goes here
});
}
}
Please see CHANGELOG for more information what has changed recently.
If you discover any security related issues, please email aduhaime@armcanada.ca instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.