Monolog handler for Fluent.
<?php
use Monolog\Logger;
use Otobank\Monolog\Handler\FluentHandler;
$logger = new Logger('name');
$logger->pushHandler(new FluentHandler());
$logger->alert('Something wrong.');
example) app/config/config.yml
services:
acme.monolog.fluent_handler:
class: Otobank\Monolog\Handler\FluentHandler
arguments:
- "%acme.fluent.uri%"
monolog:
handlers:
fluent:
type: service
id: acme.monolog.fluent_handler
level: debug
composer require otobank/monolog-fluent-handler
SATO Keisuke - ksato@otobank.co.jp - https://github.com/riaf
Licensed under the MIT License - see the LICENSE file for details
OTOBANK Inc.