PHP code example of nnaemekanweke / logwatch

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

    

nnaemekanweke / logwatch example snippets


'channels' => [
    // ...

    'logwatch' => [
        'driver' => 'custom',
        'via' => \Nnaemekanweke\Logwatch\Logging\LogWatchChannelFactory::class,
    ],
],

Log::channel('logwatch')->info('Order shipped', ['order_id' => $order->id]);

'stack' => [
    'driver' => 'stack',
    'channels' => ['single', 'logwatch'],
],