8000 GitHub - armcanada/TaskLogger
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

armcanada/TaskLogger

Repository files navigation

Very short description of the package

This package allows us to write the execution of our task to a centralised log for auditing purposes.

Installation

You can install the package via composer:

composer require armcanada/tasklogger

Usage

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
		});
	}
}

Changelog

Please see CHANGELOG for more information what has changed recently.

Security

If you discover any security related issues, please email aduhaime@armcanada.ca instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0