sofa/laravel-artisan-log

Logging for Laravel artisan commands and scheduled tasks
247,548 4
Install
composer require sofa/laravel-artisan-log
Latest Version:1.0.5
PHP:>=7.4
Laravel:7 · 8 · 9
License:MIT
Last Updated:Jan 31, 2023
Links: GitHub  ·  Packagist
Maintainer: jarektkaczyk

Plug-and-play logging for artisan commands and scheduled jobs

Latest Stable Version MIT Licensed GitHub Tests Action Status Total Downloads

Installation

composer require sofa/laravel-artisan-log

# Optionally publish configuration to customize behavior:
php artisan vendor:publish --provider="Sofa\ArtisanLog\ArtisanLogServiceProvider"

Requires PHP7.4+ and Laravel 7+

This package provides a super simple logging functionality for chosen artisan commands and scheduled jobs.

By default it will start logging in the default channel your app is using:

[2020-05-16 22:00:01] production.INFO: [artisan scheduled starting] reminders:some-reminder
[2020-05-16 22:00:01] production.INFO: [artisan scheduled finished] reminders:some-reminder
[2020-05-16 22:00:01] production.INFO: [artisan starting] reminders:another-reminder
[2020-05-16 22:00:02] production.INFO: [artisan finished] reminders:another-reminder
[2020-05-16 23:00:02] production.INFO: [artisan starting] reminders:another-reminder
[2020-05-16 23:00:02] production.INFO: [artisan failed with exit code: 12] reminders:another-reminder
...

Configuration file contains references and examples how you may want to customize its behavior.

Related Packages

doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database s...

644,549,754 9,698
laravel/framework

The Laravel Framework.

593,882,149 34,959
laravel/tinker

Powerful REPL for the Laravel framework.

507,193,856 7,441
laravel/serializable-closure

Laravel Serializable Closure provides an easy and secure way to serialize closur...

423,477,751 607
nunomaduro/collision

Cli error handling for console/command-line PHP applications.

399,241,428 4,660

Version History

Version Released PHP Laravel License
1.0.5 >=7.4 >=7.0 MIT
1.0.4 >=7.4 >=7.0 MIT
1.0.3 >=7.4 >=7.0 MIT
1.0.2 ^7.4 ^7.0 MIT
1.0.1 ^7.4 ^7.0 MIT