Skip to content

Latest commit

 

History

History
63 lines (42 loc) · 1.13 KB

README.md

File metadata and controls

63 lines (42 loc) · 1.13 KB

Monolog Fluent Handler

Build Status

Monolog handler for Fluent. Also supporting data from optional field "extra", e.g. set by IntrospectionProcessor.

Usage

<?php

use Monolog\Logger;
use MehrAlsNix\Monolog\Handler\FluentHandler;

$logger = new Logger('name');
$logger->pushHandler(new FluentHandler());

$logger->alert('Something wrong.');

Symfony

example) app/config/config.yml

services:
    acme.monolog.fluent_handler:
        class: MehrAlsNix\Monolog\Handler\FluentHandler
        arguments:
            - "%acme.fluent.uri%"

monolog:
    handlers:
        fluent:
            type: service
            id: acme.monolog.fluent_handler
            level: debug

Installation

composer require mehr-als-nix/monolog-fluent-handler

Authors

Mattias Meiner - [email protected] - https://github.com/MattiasAlsNix

started by ATO Keisuke - [email protected] - https://github.com/riaf

License

[LICENSE:MIT]