monolog-bundle icon indicating copy to clipboard operation
monolog-bundle copied to clipboard

Add priority field to processor tags

Open sudo-plz opened this issue 3 years ago • 0 comments

So that the order in which the processors are used by monolog can be determined.

Example config:

    Foo\Bar\Log\Processors\FirstProcessor:
        tags:
            - { name: monolog.processor, channel: http }

    Foo\Bar\Log\Processors\SecondProcessor:
        tags:
            - { name: monolog.processor, channel: http, priority: -10 } # last

    Foo\Bar\Log\Processors\ThirdProcessor:
        tags:
            - { name: monolog.processor, channel: http, priority: -20 } # very last

sudo-plz avatar Nov 04 '21 14:11 sudo-plz