PHPackages                             seretalabs/monolog-fluentd-bundle - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Logging &amp; Monitoring](/categories/logging)
4. /
5. seretalabs/monolog-fluentd-bundle

ActiveBundle[Logging &amp; Monitoring](/categories/logging)

seretalabs/monolog-fluentd-bundle
=================================

Simple wrapper bundle for Symfony2 that extends Monolog with Fluentd support

v0.5.0(10y ago)555.6k8[2 issues](https://github.com/Elexy/SeretalabsMonologFluentdBundle/issues)PHP

Since Sep 9Pushed 9y ago1 watchersCompare

[ Source](https://github.com/Elexy/SeretalabsMonologFluentdBundle)[ Packagist](https://packagist.org/packages/seretalabs/monolog-fluentd-bundle)[ RSS](/packages/seretalabs-monolog-fluentd-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (2)Versions (5)Used By (0)

MonologFluentdBundle
====================

[](#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](http://www.fluentd.org/) handler for [Monolog](https://github.com/Seldaek/monolog) as a Symfony bundle.

Installation
------------

[](#installation)

Kernel

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

```

Autoload:

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

```

Configuration
-------------

[](#configuration)

Configure Monolog

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

```

Configure monolog for fluentd:

```
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
-----

[](#usage)

```
