2017 © Pedro Peláez
 

library monolog-fluent-handler

Fluentd Handler for Monolog

image

dakatsuka/monolog-fluent-handler

Fluentd Handler for Monolog

  • Friday, January 30, 2015
  • by dakatsuka
  • Repository
  • 1 Watchers
  • 10 Stars
  • 83,139 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 5 Forks
  • 1 Open issues
  • 4 Versions
  • 13 % Grown

The README.md

MonologFluentHandler Build Status

Latest Stable Version Latest Unstable Version, (*1)

Fluentd Handler for Monolog, (*2)

Installation

Add this lines to your composer.json:, (*3)

{
    "require": {
        "dakatsuka/monolog-fluent-handler": "1.2.0"
    }
}

And then execute:, (*4)

$ php composer.phar install

Usage

<?php
use Dakatsuka\MonologFluentHandler\FluentHandler;
use Monolog\Logger;

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

$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"}

You can specify the host name and port., (*5)

<?php
$logger = new Logger('dakatsuka');
$logger->pushHandler(new FluentHandler(null, '127.0.0.1', 24224));

You can specify the FluentLogger object., (*6)

<?php
$fluent = new FluentLogger("localhost", 24224);
$logger = new Logger('dakatsuka');
$logger->pushHandler(new FluentHandler($fluent));

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

Test

$ make phpunit
$ make test

Copyright (C) 2013-2015 Dai Akatsuka, released under the MIT License., (*7)

The Versions

30/01 2015

dev-master

9999999-dev

Fluentd Handler for Monolog

  Sources   Download

MIT

The Requires

 

logger log logging fluentd

30/01 2015

1.2.0

1.2.0.0

Fluentd Handler for Monolog

  Sources   Download

MIT

The Requires

 

logger log logging fluentd

22/08 2014

1.1.0

1.1.0.0

Fluentd Handler for Monolog

  Sources   Download

MIT

The Requires

 

logger log logging fluentd

10/10 2013

1.0.0

1.0.0.0

Fluentd Handler for Monolog

  Sources   Download

MIT

The Requires

 

logger log logging fluentd