PHP code example of vmorozov / laravel-json-log-formatter

1. Go to this page and download the library: Download vmorozov/laravel-json-log-formatter library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

vmorozov / laravel-json-log-formatter example snippets


'formatter' => \VMorozov\LaravelJsonLogFormatter\JsonLogsFormatter::class,

'daily' => [
    'driver' => 'daily',
    'path' => storage_path('logs/laravel.log'),
    'level' => env('LOG_LEVEL', 'debug'),
    'days' => env('LOG_DAILY_DAYS', 15),
    'replace_placeholders' => true,
    'formatter' => \VMorozov\LaravelJsonLogFormatter\JsonLogsFormatter::class,
],
bash
php artisan vendor:publish --tag="json-log-formatter-config"