PHP code example of lemestwo / rocketchat-monolog-handler

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

    

lemestwo / rocketchat-monolog-handler example snippets


use Drugovich\Logging\RocketChatHandler;

'rocketchat' => [
    'driver' => 'monolog',
    'handler' => RocketChatHandler::class,
    'with' => [
        'webhooks' => [env('ROCKET_CHAT_WEBHOOK', '')],
        'username' => 'Awesome Laravel Bot',
        'emoji' => ':rotating_light:',
    ],
    'level' => 'warning',
],

'channels' => ['daily'],

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