PHP code example of beeproger / rocketchat-monolog-handler

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

    

beeproger / rocketchat-monolog-handler example snippets


use Beeproger\Logging\RocketChatHandler;

    'rocketchat' => [
        'driver' => 'custom',
        'via' => RocketChatHandler::class,
        'url' => env('LOG_ROCKETCHAT_WEBHOOK_URL', ''),
        'channel' => env('LOG_ROCKETCHAT_CHANNEL', ''),
    ],

'channels'          => ['daily'],

'channels'          => ['daily', 'rocketchat'],

LOG_ROCKETCHAT_WEBHOOK_URL=
LOG_ROCKETCHAT_CHANNEL=