2017 © Pedro Peláez
 

bundle monolog-fluentd-bundle

Simple wrapper bundle for Symfony2 that extends Monolog with Fluentd support

image

seretalabs/monolog-fluentd-bundle

Simple wrapper bundle for Symfony2 that extends Monolog with Fluentd support

  • Thursday, October 27, 2016
  • by Elexy
  • Repository
  • 1 Watchers
  • 4 Stars
  • 16,336 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 6 Forks
  • 2 Open issues
  • 5 Versions
  • 4 % Grown

The README.md

MonologFluentdBundle

This bundle enables logging to the fluentd log concentrator from Symfony.
Fluentd is an open source datacollector and decouples your logging collection
and analysis tools from your project by sending all logs from deamons, apps
in front and backend to one single daemon and use filtering to selectively
forward to storage engine / analysis tools

fluentd handler for Monolog as a Symfony bundle., (*1)

Installation

Kernel, (*2)

$bundles = array(
    //..
    new Seretalabs\MonologFluentdBundle\MonologFluentdBundle(),
);

Autoload:, (*3)

$loader->registerNamespaces(array(
    //..
    'Seretalabs' => __DIR__.'/../vendor/bundles',
));

Configuration

Configure Monolog, (*4)

monolog:
    handlers:
        main:
            type:         fingers_crossed
            action_level: error
            handler:      fluentd
        fluentd:
            type: service
            id: monolog_fluentd.monolog_handler

Configure monolog for fluentd:, (*5)

monolog_fluentd:
    # fluentd API host
    host: localhost

    # fluentd API port default 24224
    port: 24224

    # Level to be logged (defaults to DEBUG)
    level: DEBUG

    bubble: true

Usage

<?php
use Monolog\Logger;

$logger->debug('example.monolog', array('foo' => 'bar'));
$logger->info('example.fluentd', array('fizz' => 'buzz'));

// Fluentd:
// 2013-10-11 01:00:00 +0900 dakatsuka.example.monolog: {"foo":"bar","level":"DEBUG"}
// 2013-10-11 01:00:00 +0900 dakatsuka.example.fluentd: {"fizz":"buzz","level":"INFO"}

credits

This bundle uses [daktsuka](https://github.com/dakatsuka)'s fluentd handler for Monolog [https://github.com/dakatsuka/MonologFluentHandler]

The Versions

27/10 2016

dev-master

9999999-dev

Simple wrapper bundle for Symfony2 that extends Monolog with Fluentd support

  Sources   Download

The Requires

 

by Alex Knol

25/01 2016

v0.5.0

0.5.0.0

Simple wrapper bundle for Symfony2 that extends Monolog with Fluentd support

  Sources   Download

The Requires

 

by Alex Knol

09/09 2014

v0.4.0

0.4.0.0

Simple wrapper bundle for Symfony2 that extends Monolog with Fluentd support

  Sources   Download

The Requires

 

by Alex Knol

09/09 2014

v0.3.0

0.3.0.0

Simple wrapper bundle for Symfony2 that extends Monolog with Fluentd support

  Sources   Download

The Requires

 

by Alex Knol

09/09 2014

v0.1.0

0.1.0.0

Simple wrapper bundle for Symfony2 that extends Monolog with Fluentd support

  Sources   Download

The Requires

 

by Alex Knol