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 1 year ago • 6 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

(PR in favor of old PR)

sudo-plz avatar Mar 17 '23 13:03 sudo-plz

Related PR has been merged, can you finish the review @HypeMC? Thanks!

sudo-plz avatar Jun 20 '23 18:06 sudo-plz

Hey, what's the status here? I'm also interested in the feature. Thanks :)

nicklog avatar Dec 28 '23 11:12 nicklog

Hey, what's the status here? I'm also interested in the feature. Thanks :)

Following comment is still open: https://github.com/symfony/monolog-bundle/pull/455/files#r1369858964 I didn't take the time to fix it anymore, however I'll check if I can implement it sometime (or feel free to change it)

sudo-plz avatar Dec 28 '23 11:12 sudo-plz

@stof, @HypeMC, would you please check?

alexndlm avatar Jul 15 '24 12:07 alexndlm

@Seldaek could you merge this?

alexndlm avatar Jul 19 '24 09:07 alexndlm

@nicolas-grekas could you help to merge this?

alexndlm avatar Jul 23 '24 08:07 alexndlm