2017 © Pedro Peláez
 

symfony-bundle logstash-bundle

Symfony2 Bundle for writing logs to logstash through redis broker/input.

image

emran/logstash-bundle

Symfony2 Bundle for writing logs to logstash through redis broker/input.

  • Friday, August 7, 2015
  • by phpfour
  • Repository
  • 1 Watchers
  • 9 Stars
  • 1,791 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

LogstashBundle

A bundle on top of MonologBundle which provides logging to logstash through redis broker/input., (*1)

Installation

Step 1: Download LogstashBundle

Add logstash bundle in your composer.json as below:, (*2)

"require": {
    ...
    "emran/logstash-bundle": "1.0.0"
}

Update/install with this command:, (*3)

php composer.phar update "emran/logstash-bundle"
Step 2: Enable the bundle

Register the bundle, (*4)

public function registerBundles()
{
    $bundles = array(
        ...
        new Emran\Bundle\LogstashBundle\EmranLogstashBundle(),
);
Step 3: Activate the main configs
# app/config/config.yml
emran_logstash:
    redis:
        host: localhost
        port: 6379
        list: logstash
        name: myApp

How to use ?

The bundle adds a new handler to the already register logger service, so there shouldn't be any change in the way you are logging your events:, (*5)

public function indexAction()
{
    $this->get('logger')->debug('Loading index page.');
    return $this->render('TestBundle:Default:index.html.twig');
}

The Versions

07/08 2015

dev-master

9999999-dev http://phpfour.com

Symfony2 Bundle for writing logs to logstash through redis broker/input.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Mohammad Emran Hasan

log logging

06/10 2013

1.0.0

1.0.0.0 http://www.emranhasan.com

Symfony2 Bundle for writing logs to logstash through redis broker/input.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Mohammad Emran Hasan

log logging