caseycs/monolog-rethinkdb

RethinkDB handler for Monolog

0.1.1 2015-02-12 14:12 UTC

This package is not auto-updated.

Last update: 2024-04-13 14:34:34 UTC


README

RethinkDB handler for Monolog

Installation

Execute:

$ composer require caseycs/monolog-rethinkdb

Or:

Add this lines to your composer.json:

{
    "require": {
        "caseycs/monolog-rethinkdb": "~0.1"
    }
}

And then execute:

$ php composer.phar install

Usage

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

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

$log = new Logger('channel');
$log->pushHandler($handler);

Copyright

Copyright © 2015 Ilia Kondrashov, released under the MIT License.