sofa/laravel-artisan-log

Logging for Laravel artisan commands and scheduled tasks
224,793 4
Install
composer require sofa/laravel-artisan-log
Latest Version:1.0.5
PHP:>=7.4
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...

634,760,849 9,707
laravel/framework

The Laravel Framework.

584,532,650 34,931
laravel/tinker

Powerful REPL for the Laravel framework.

493,838,477 7,443
laravel/serializable-closure

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

408,553,772 609
nunomaduro/collision

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

387,976,821 4,658