PHP code example of stormcode / seq-laravel-log

1. Go to this page and download the library: Download stormcode/seq-laravel-log 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/ */

    

stormcode / seq-laravel-log example snippets


'seq' => [
    'driver' => 'monolog',
    'handler' => StormCode\SeqMonolog\Handler\SeqHandler::class,
    'with' => [
        'serverUri' => env('SEQ_URL'),
        'apiKey' => env('SEQ_API_KEY', null),
        'level' => Monolog\Logger::DEBUG,
        'bubble' => true
    ],
    'formatter' => StormCode\SeqMonolog\Formatter\SeqCompactJsonFormatter::class,
    'formatter_with' => [
        'batchMode' => 1, //1 OR 2
    ],
],
config/logging.php