dallyger / laravel-ansi-logger
Visual overview at a glance for Laravel logs in interactive shells.
v0.1.0
2025-02-16 19:20 UTC
Requires
- php: ^8.2
- illuminate/log: ^11.0|^12.0
This package is not auto-updated.
Last update: 2025-05-26 21:28:30 UTC
README
Quickly understand the severity of some logged actions without having to read everything line by line.
Installation
Install this package via composer into your application and configure for the
stderr
log channel by tapping it as described at customizing
monolog:
composer require dallyger/laravel-ansi-logger
// config/logging.php
'stderr' => [
'driver' => 'monolog',
'level' => env('LOG_LEVEL', 'debug'),
+ 'tap' => [\Dallyger\AnsiLogger\CustomizeChannel::class],
'formatter' => env('LOG_STDERR_FORMATTER'),
// ...
],
Make sure to actually use the stderr
logger by either updating your default
channel, adding it to the stack channel or setting the LOG_CHANNEL
environment variable.
Source Code
The project is licensed under MIT and the source code is available at: