PHP code example of caseycs / monolog-rethinkdb

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

    

caseycs / monolog-rethinkdb example snippets



$connection = r\connect('localhost');
$connection->useDb('test');

$table = 'log';
new MonologRethinkDBHandler\Handler(Logger::INFO, true, $connection, $table);

$log = new Logger('channel');
$log->pushHandler($handler);
bash
$ php composer.phar install