Git Product home page Git Product logo

logger-extra-bundle's People

Contributors

deamon avatar jadelrab avatar louispaulet avatar thomasp1992 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

logger-extra-bundle's Issues

Error when installing from recipe

Fatal error: Uncaught Symfony\Component\Debug\Exception\FatalThrowableError: Argument 1 passed to Deamon\LoggerExtraBundle\Services\DeamonLoggerExtraContext::__construct() must be of the type string, null given, 
called in /var/www/var/cache/dev/ContainerSr85dP7/srcDevDebugProjectContainer.php on line 1102 in /var/www/vendor/deamon/logger-extra-bundle/Services/DeamonLoggerExtraContext.php on line 16

ApplicationName var can be null by default.
Constructor type hint has to allow null.

channel_prefix is append more than once

In some monolog configuration, the log is parse more than one time by the processor.

This ends with a channel set with several time the channel_prefix.

eg: v1.5.4.v1.5.4.request

Channel Prefix is appened twice (sometimes)

Sometimes, DeamonLoggerExtraWebProcessor is called twice, resulting in a double prefix of the channel.
Here is the configuration :

  • In config.yml:
monolog:
    channels: ['api', 'user', 'aws']
deamon_logger_extra:
    application:
        name: "%application_name%"
    handlers: [main_gelf, info_gelf]
    config:
        channel_prefix: "%application_version%"
  • In config_dev:
monolog:
    handlers:
        main:
            type: stream
            path: "%kernel.logs_dir%/%kernel.environment%.log"
            level: debug
            channels: [!event]
        console:
            type:   console
            channels: [!event, !doctrine]
        main_gelf:
            type: gelf
            publisher:
                hostname: "%graylog_host%"
            level: info
            channels: [!event]
        info_gelf:
            type:  gelf
            publisher:
                hostname: "%graylog_host%"
            level: info
            channels: [api, user, aws]
  • In config_prod
monolog:
    handlers:
        main:
            type:         fingers_crossed
            action_level: error
            handler:      nested
        nested:
            type:  stream
            path: "%kernel.logs_dir%/%kernel.environment%.log"
            level: info
        console:
            type:  console
        main_gelf:
            type:         fingers_crossed
            action_level: error
            handler:      nested_gelf
            channels: [!api, !user, !aws]
        nested_gelf:
            type:  gelf
            publisher:
                hostname: "%graylog_host%"
            level: info
        info_gelf:
            type:  gelf
            publisher:
                hostname: "%graylog_host%"
            level: info
            channels: [api, user, aws]

Deprecation: A tree builder without a root node is deprecated since Symfony 4.2

Les logs de deprecations suivants apparaissent dans le channel php:
[2019-07-19 15:42:01] php.INFO: User Deprecated: A tree builder without a root node is deprecated since Symfony 4.2 and will not be supported anymore in 5.0. {"exception":"[object] (ErrorException(code: 0): User Deprecated: A tree builder without a root node is deprecate d since Symfony 4.2 and will not be supported anymore in 5.0. at C:\\xampp\\htdocs\\UserAPI\\vendor\\symfony\\config\\Definition\\Builder\\TreeBuilder.php:30)"} [] [2019-07-19 15:42:01] php.INFO: User Deprecated: The "Symfony\Component\Config\Definition\Builder\TreeBuilder::root()" method called for the "deamon_logger_extra" configuration is deprecated since Symfony 4.3, pass the root name to the constructor instead. {"exception":" [object] (ErrorException(code: 0): User Deprecated: The \"Symfony\\Component\\Config\\Definition\\Builder\\TreeBuilder::root()\" method called for the \"deamon_logger_extra\" configuration is deprecated since Symfony 4.3, pass the root name to the constructor instead. at C:\\xampp\\htdocs\\UserAPI\\vendor\\symfony\\config\\Definition\\Builder\\TreeBuilder.php:52)"} [] [2019-07-19 15:42:01] php.INFO: User Deprecated: A tree builder without a root node is deprecated since Symfony 4.2 and will not be supported anymore in 5.0. {"exception":"[object] (ErrorException(code: 0): User Deprecated: A tree builder without a root node is deprecate d since Symfony 4.2 and will not be supported anymore in 5.0. at C:\\xampp\\htdocs\\UserAPI\\vendor\\symfony\\config\\Definition\\Builder\\TreeBuilder.php:30)"} [] [2019-07-19 15:42:01] php.INFO: User Deprecated: The "Symfony\Component\Config\Definition\Builder\TreeBuilder::root()" method called for the "deamon_logger_extra" configuration is deprecated since Symfony 4.3, pass the root name to the constructor instead. {"exception":" [object] (ErrorException(code: 0): User Deprecated: The \"Symfony\\Component\\Config\\Definition\\Builder\\TreeBuilder::root()\" method called for the \"deamon_logger_extra\" configuration is deprecated since Symfony 4.3, pass the root name to the constructor instead. at C:\\xampp\\htdocs\\UserAPI\\vendor\\symfony\\config\\Definition\\Builder\\TreeBuilder.php:52)"} []

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.