lelivrescolaire/monolog-extra-bundle

Customize monolog usage in your symfony 2 application.

dev-master 2017-01-29 16:01 UTC

This package is not auto-updated.

Last update: 2020-01-07 15:20:02 UTC


README

LeLivreScolaire

Monolog Extra Bundle Build Status Coverage Status

Extend your Monolog stack with some missing tools.

Installation

$ composer require "lelivrescolaire/monolog-extra-bundle:dev-master"

AppKernel:

public function registerBundles()
{
    $bundles = array(
        new LLS\Bundle\MonologExtraBundle\LLSMonologExtraBundle(),
    );
}

Configuration reference

lls_monolog_extra:
    handlers:           # Create custom handlers
        sqs_handler:
            type: sqs       # Handler using Queue from SQSBundle
            queue: myQueue  # Queue identifier
            level: INFO     # Log level (int or label)
            bubble: true    # Whether or not execute next handlers

monolog:
    handlers:
        sqs:
            type:     service
            id:       lls_monolog_extra.handlers.sqs_handler  # Auto generated service
            priority: 0

Read more documentation here

Contribution

Feel free to send us Pull Requests and Issues with your fixs and features.

Run test

Unit tests

$ ./bin/atoum

Coding standards

$ ./bin/coke