Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.7k
[Monolog] Added a way to configure the ConsoleFormatter from the ConsoleHandler#30345
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
fabpot commentedFeb 23, 2019
The configuration you have in the description should be the default one, right? Is it possible to make it the default in the bundle? Or at least, add this snippet in the recipe? |
fabpot commentedFeb 23, 2019
Thank you@lyrixx. |
…r from the ConsoleHandler (lyrixx)This PR was merged into the 4.3-dev branch.Discussion----------[Monolog] Added a way to configure the ConsoleFormatter from the ConsoleHandler| Q | A| ------------- | ---| Branch? | master| Bug fix? | no| New feature? | yes| BC breaks? | no| Deprecations? | no| Tests pass? | yes| Fixed tickets | -| License | MIT| Doc PR |see alsosymfony/monolog-bundle#297from that:to that:with some configuration:```yamldiff --git a/config/packages/dev/monolog.yaml b/config/packages/dev/monolog.yamlindex b1998da..66ae2db 100644--- a/config/packages/dev/monolog.yaml+++ b/config/packages/dev/monolog.yaml@@ -17,3 +17,6 @@ monolog: type: console process_psr_3_messages: false channels: ["!event", "!doctrine", "!console"]+ console_formater_options:+ format: "%%datetime%% %%start_tag%%%%level_name%%%%end_tag%% <comment>[%%channel%%]</> %%message%%%%context%%\n"+ multiline: false```Commits-------5e494db [Monolog] Added a way to configure the ConsoleFormatter from the ConsoleHandler
lyrixx commentedFeb 24, 2019
It's really a matter of taste. But I could send a PR with commented configuration. WDYT ? |
This PR was merged into the 3.x-dev branch.Discussion----------Expose configuration for the ConsoleHandlerLike that we will be able to use this configuration (for example):```yaml console: type: console process_psr_3_messages: false channels: ["!event", "!doctrine", "!console"] console_formater_options: format: "%%datetime%% %%start_tag%%%%level_name%%%%end_tag%% <comment>[%%channel%%]</> %%message%%%%context%%\n" multiline: false```see alsosymfony/symfony#30345Commits-------cc9abf6 Expose configuration for the ConsoleHandler
lyrixx commentedMar 12, 2019
Here we go:symfony/recipes#552 |
This PR was merged into the 3.x-dev branch.Discussion----------Expose configuration for the ConsoleHandlerLike that we will be able to use this configuration (for example):```yaml console: type: console process_psr_3_messages: false channels: ["!event", "!doctrine", "!console"] console_formater_options: format: "%%datetime%% %%start_tag%%%%level_name%%%%end_tag%% <comment>[%%channel%%]</> %%message%%%%context%%\n" multiline: false```see alsosymfony/symfony#30345Commits-------5605600 Expose configuration for the ConsoleHandler
Uh oh!
There was an error while loading.Please reload this page.
see alsosymfony/monolog-bundle#297
from that:

to that:

with some configuration: