Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[Monolog Bridge] formatter log pattern override is no more possible #23290

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
quazardous opened this issue Jun 25, 2017 · 2 comments
Closed

[Monolog Bridge] formatter log pattern override is no more possible #23290

quazardous opened this issue Jun 25, 2017 · 2 comments

Comments

@quazardous
Copy link

Q A
Bug report? yes
Feature request? no
BC Break report? yes
RFC? no
Symfony version 3.3.2

Since the new colored console logs and change of log pattern, it no more possible to easily override log pattern and inject items in the record.

Before it was possible to override the pattern ConsoleFormatter::SIMPLE_FORMAT, push processor to inject what ever data you needed in record and that was all.

Now the formatter calls self::SIMPLE_FORMAT instead of static::SIMPLE_FORMAT and format() just ignore unknown items in $record.

@carsonbot
Copy link

Hey, thanks for your report!
There has not been a lot of activity here for a while. Is this bug still relevant? Have you managed to find a workaround?

@xabbuh
Copy link
Member

xabbuh commented Dec 20, 2020

This should have been made possible in the meantime by #30345.

@xabbuh xabbuh closed this as completed Dec 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants