PHPackages                             adamaru/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. adamaru/monolog-fluentd-bundle

AbandonedArchivedSymfony-bundle

adamaru/monolog-fluentd-bundle
==============================

Symfony bundle defining a fluentd handler for monolog

v0.7.0(7y ago)08.8k1MITPHPPHP ~7.0

Since Sep 9Pushed 7y ago1 watchersCompare

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

READMEChangelog (2)Dependencies (2)Versions (7)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)

```
