New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

keerill/laravel-json-formatter

JsonFormatter for Laravel Octane
5
Install
composer require keerill/laravel-json-formatter
Latest Version:v1.1.0
PHP:^8.1
Laravel:10
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

khazhinov/laravel-octane

Supercharge your Laravel application's performance.

2,678 0
swooder/lumenoctane

Supercharge your Lumen application's performance.

549 3
lordversa/octane-custom-status-code

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

13 0
dynamitechetan/lumenoctane

Supercharge your Lumen application's performance.

1 0
laravel/octane

Supercharge your Laravel application's performance.

36,968,728 4,054

Version History

Version Released PHP Laravel License
v1.1.0 ^8.1 ^10.0 MIT
v1.0.0 ^8.1 ^10.0 MIT