2017 © Pedro Peláez
 

symfony-bundle logger-extra-bundle

This bundle is here to add some extra info about the context in your logs.

image

deamon/logger-extra-bundle

This bundle is here to add some extra info about the context in your logs.

  • Friday, August 11, 2017
  • by Deamon
  • Repository
  • 1 Watchers
  • 3 Stars
  • 1,770 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 1 Open issues
  • 10 Versions
  • 34 % Grown

The README.md

DeamonLoggerExtra Bundle

Build status Scrutinizer Code Quality Code Coverage symfony version php version, (*1)

This project is used to add extra context information in your logs., (*2)

If you need compatibility with previous Symfony versions, have a look at previous releases., (*3)

Requirements

php >=8.0.2, (*4)

symfony/security-core symfony/dependency-injection symfony/monolog-bridge symfony/http-kernel symfony/http-foundation symfony/config, (*5)

Compatible with Symfony starting from 6.0.
Tags follow Symfony versions., (*6)

Installation

You need to add a package to your dependency list :, (*7)

    // composer.json
    "deamon/logger-extra-bundle": "^6.0"

Then enable the bundle into your kernel, (*8)

    // config/bundles.php
    return [
        // ...
        App\Acme\TestBundle\AcmeTestBundle::class => ['all' => true],
    ];

Finally you need to configure the bundle., (*9)

Config Example

Given this config sample of a project:, (*10)

// config/packages/monolog.yml
monolog:
    handlers:
        main:
            type: stream
            path: "%kernel.logs_dir%/%kernel.environment%.log"
            level: debug
            channels: ["!event"]

With this example of monolog config, you can configure this bundle to only add extra info on main handler., (*11)

// config/packages/deamon_logger_extra.yml
deamon_logger_extra:
    application:  
        name: "loc-deamonfront"
        version: "v0.1"
    handlers: [main]

Config reference

// config/packages/deamon_logger_extra.yaml
deamon_logger_extra:
    application:
        name: "loc-deamonfront" # default to null
        locale: "fr" # default to null
        version: "v0.1" # default to null
    handlers: [main] # the only required field
    config:
        channel_prefix: "v0.1" # default to null
        user_class: "\\Symfony\\\Component\\Security\\Core\\User\\UserInterface" # default to null
        user_methods:
            user_name: getUsername # default value
        display:
            env: false # default to true
            locale: false # default to true
            application_name: false # default to true
            url: false # default to true
            route: false # default to true
            user_agent: false # default to true
            accept_encoding: false # default to true
            client_ip: false # default to true
            user: false # default to true
            global_channel: false # default to true

Minimal configuration

// config/packages/deamon_logger_extra.yaml
deamon_logger_extra:
    application: null
    handlers: ['main']
    config: null

The Versions

11/08 2017

dev-master

9999999-dev

This bundle is here to add some extra info about the context in your logs.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Bastien DURAND

log gelf

11/08 2017

v2.1.0

2.1.0.0

This bundle is here to add some extra info about the context in your logs.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Bastien DURAND

log

22/04 2017

1.0.x-dev

1.0.9999999.9999999-dev

This bundle is here to add some extra info about the context in your logs.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Bastien DURAND

log gelf

22/04 2017

0.1.x-dev

0.1.9999999.9999999-dev

This bundle is here to add some extra info about the context in your logs.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Bastien DURAND

log gelf

22/04 2017

v0.1.1

0.1.1.0

This bundle is here to add some extra info about the context in your logs.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Bastien DURAND

log gelf

19/04 2017

v0.1.0

0.1.0.0

This bundle is here to add some extra info about the context in your logs.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Bastien DURAND

log gelf

19/04 2017

v2.0.1

2.0.1.0

This bundle is here to add some extra info about the context in your logs.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Bastien DURAND

log gelf

06/04 2017

v2.0.0

2.0.0.0

This bundle is here to add some extra info about the context in your logs.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Bastien DURAND

log gelf

05/03 2017