Downloads
Stars
Version
This package allows you to format JSON logs for Laravel Octane RoadRunner server.
You can install the package via composer:
composer require keerill/laravel-json-formatter
You can publish and run the migrations with:
LOG_CHANNEL=stderr
LOG_STDERR_FORMATTER="\\Keerill\\LaravelJsonFormatter\\LaravelJsonFormatter"
// config/logging.php
return [
'channels' => [
'stderr' => [
'driver' => 'monolog',
'handler' => StreamHandler::class,
'formatter' => Keerill\LaravelJsonFormatter\LaravelJsonFormatter::class,
'with' => [
'stream' => 'php://stderr',
],
],
],
]
The MIT License (MIT). Please see License File for more information.