2017 © Pedro Peláez
 

symfony-bundle monolog-extra-bundle

Provide extra features for Monolog

image

m6web/monolog-extra-bundle

Provide extra features for Monolog

  • Thursday, March 22, 2018
  • by M6Web
  • Repository
  • 26 Watchers
  • 3 Stars
  • 121,089 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 8 Versions
  • 6 % Grown

The README.md

MonologExtraBundle Build Status

Provide extra features for Monolog., (*1)

The actual version of this bundle support Symfony >= 4.4. If you need support for older versions, you have to use version < 3.0., (*2)

Installation

Via composer :, (*3)

"require": {
    "m6web/monolog-extra-bundle":"1.1.*"
}

then enable the bundle in your kernel:, (*4)

<?php

$bundles = [
    new M6Web\Bundle\MonologExtraBundle\M6WebMonologExtraBundle
];

Configuration

Processors

A processor can add, modify or remove log content., (*5)

For now, only one processor is available: ContextInformationProcessor. It allows you to add extra context information to each log entry., (*6)

m6_web_monolog_extra:
    processors:
        myProcessor:

            # Given that there is only one processor for now,
            # type is optionnal and will have ContextInformation as default value
            type: ContextInformation

            # You can attach the processor to a handler or a channel, but not both
            # Those two configuration entry are optionnal, if you omit both
            # then the processor will be attached to all log channel and handlers.
            handler: gelf
            channel: request

            # Then you can define the context information you wish to add
            # Each entry under config will be an entry in context information
            config:
                foo: bar
                bar: foo
                env: expr(container.getParameter('kernel.environment'))

Tests

$ ./vendor/bin/atoum

The Versions

22/03 2018
22/03 2018
30/08 2017
19/10 2016

v1.0.3

1.0.3.0 https://github.com/M6Web/MonologExtraBundle

Provide extra features for Monolog

  Sources   Download

MIT

The Requires

 

The Development Requires

log logging

30/06 2016

v1.0.2

1.0.2.0 https://github.com/M6Web/MonologExtraBundle

Provide extra features for Monolog

  Sources   Download

MIT

The Requires

 

The Development Requires

log logging

28/10 2014

v1.0.1

1.0.1.0 https://github.com/M6Web/MonologExtraBundle

Provide extra features for Monolog

  Sources   Download

MIT

The Requires

 

The Development Requires

log logging

06/10 2014

v1.0.0

1.0.0.0 https://github.com/M6Web/MonologExtraBundle

Provide extra features for Monolog

  Sources   Download

MIT

The Requires

 

The Development Requires

log logging