Skip to content

MehrAlsNix/monolog-fluent-handler

 
 

Repository files navigation

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 - mattiasmeiner@gmail.com - https://github.com/MattiasAlsNix

started by ATO Keisuke - ksato@otobank.co.jp - https://github.com/riaf

License

[LICENSE:MIT]

Packages

No packages published

Languages

  • PHP 97.6%
  • Makefile 2.4%