-
-
Notifications
You must be signed in to change notification settings - Fork 498
Fallback to line formatter on missing cli dumper #145
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
Conversation
Some context: the original issue was that the application didn't have VarDumper installed and then the logs were poorly formatted: no context, no extra, etc. |
The ConsoleFormatter is not so great when it does not come configured with a dumper: context and extra keys are not shown at all. A better fix might be to provide a poor man's dumper when the var dumper component is not installed.
dd94767
to
472ae0a
Compare
@javiereguiluz I added more context in the commit message. |
Shouldn't this be directly managed in MonologBundle? |
@sroze you mean like this?
Or should |
I would indeed fix this issue upstream, instead of adding a workaround here. |
ping @greg0ire |
@nicolas-grekas I'll try to have a look at that soonish |
@nicolas-grekas here you go: symfony/symfony#24598 |
This PR was merged into the 3.3 branch. Discussion ---------- Prefer line formatter on missing cli dumper | Q | A | ------------- | --- | Branch? | 3.3 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | none, but closes symfony/recipes#145 | License | MIT | Doc PR | n/a The console formatter does a better job, unless the VarDumper component is missing, in which case the LineFormatter should be preferred. Commits ------- 574f9f5 Prefer line formatter on missing cli dumper
The ConsoleFormatter is not so great when it does not come configured
with a dumper. A better fix might be to provide a poor man's dumper when
the var dumper component is not installed.