PHP code example of mont4 / micro-service-logger

1. Go to this page and download the library: Download mont4/micro-service-logger 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/ */

    

mont4 / micro-service-logger example snippets




...

return [

    ...

    'channels' => [
        ...

        'MicroServiceLogger' => [
            'driver'  => 'monolog',
            'handler' => Mont4\MicroServiceLogger\LogHandler::class,
            'tap'     => [
                'Mont4\MicroServiceLogger\Formatter\CustomizeFormatter'
            ],
        ]
    ]
];
bash
php artisan vendor:publish --provider="Mont4\MicroServiceLogger\ServiceProvider" --tag="config"