vanhoavn/vzt-laravel-log

VZT Logger module for Laravel.

1.5 2020-09-19 03:15 UTC

This package is auto-updated.

Last update: 2021-09-13 12:20:16 UTC


README

Configurations

Add to config\logging.php

    /**
     * Write the logs to stderr first
     **/
    'override_output'   => env('LOG_DEBUG', false),
    /**
     * Minimum logging levels: all levels below this will be ignored
     **/
    'min_logging_level' => env('MIN_LOGGING_LEVEL', 'notice'),

With the above configs, you can debug loggings while running console commands by prepending LOG_DEBUG=1.

LOG_DEBUG=1 php artisan ...