PHP code example of wyrihaximus / monolog-processors

1. Go to this page and download the library: Download wyrihaximus/monolog-processors 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/ */

    

wyrihaximus / monolog-processors example snippets


new CopyProcessor('context.abc', 'context.def');

$record = [
    'context' => [
        'abc' => 'value',
    ],
];

$record = [
    'context' => [
        'abc' => 'value',
        'def' => 'value',
    ],
];

new ExceptionClassProcessor();

new KeyValueProcessor('version', 'v1.33.128');

new RuntimeProcessor();

new ToContextProcessor();

new TraceProcessor();