keerill/laravel-json-formatter

JsonFormatter for Laravel Octane
5
Install
composer require keerill/laravel-json-formatter
Latest Version:v1.1.0
PHP:^8.1
License:MIT
Last Updated:Jan 22, 2024
Links: GitHub  ·  Packagist
Maintainer: kEERill

JsonFormatter for Laravel Octane

Latest Version on Packagist Total Downloads

This package allows you to format JSON logs for Laravel Octane RoadRunner server.

Installation

You can install the package via composer:

composer require keerill/laravel-json-formatter

You can publish and run the migrations with:

Usage

Environment

LOG_CHANNEL=stderr
LOG_STDERR_FORMATTER="\\Keerill\\LaravelJsonFormatter\\LaravelJsonFormatter"

Config

// config/logging.php
return [
    'channels' => [
        'stderr' => [
            'driver' => 'monolog',
            'handler' => StreamHandler::class,
            'formatter' => Keerill\LaravelJsonFormatter\LaravelJsonFormatter::class,
            'with' => [
                'stream' => 'php://stderr',
            ],
        ],
    ],
]

License

The MIT License (MIT). Please see License File for more information.

Related Packages

lordversa/octane-custom-status-code

Supercharge your Laravel application's performance and support custom status cod...

13 0
larva/laravel-octane

Supercharge your Laravel application's performance.

2 0
laravel/octane

Supercharge your Laravel application's performance.

29,203,017 4,028
swooder/lumenoctane

Supercharge your Lumen application's performance.

549 3
farmani/octane

Supercharge your Laravel application's performance.

4 0