10000 MonologBundle processor per handler · Issue #77 · symfony/monolog-bundle · GitHub
[go: up one dir, main page]

Skip to content
MonologBundle processor per handler #77
@flip111

Description

@flip111

Problem description:
The configuration option for processors per handler is not available.

Docs: http://symfony.com/doc/current/cookbook/logging/monolog.html#adding-a-session-request-token

If you use several handlers, you can also register the processor at the handler level instead of globally.

Example: https://github.com/symfony/MonologBundle/blob/master/DependencyInjection/Configuration.php#L562

Error:

[Symfony\Component\Config\Definition\Exception\InvalidConfigurationException]
Unrecognized options "processors" under "monolog.handlers.main"

Config:

monolog:
    handlers:
        main:
            type:  stream
            path:  %kernel.logs_dir%/%kernel.environment%.log
            level: debug
            processors: [@monolog.processor.log]

Notice that no actual configuration option for "processors" can be found in the DI configuration.

Note: this is a copy of symfony/symfony#10704

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0