mirror of
https://github.com/Seldaek/monolog.git
synced 2026-04-26 08:05:53 +03:00
[GH-ISSUE #784] Is it possible to better format logs with "big" context arrays ? #298
Labels
No labels
Bug
Documentation
Feature
Needs Work
Support
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/monolog#298
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @bgaillard on GitHub (May 11, 2016).
Original GitHub issue: https://github.com/Seldaek/monolog/issues/784
Hi, for a very critical peace of code I have to output logs associated to "big" context arrays.
Here is a sample.
The output is the following.
So everything is displayed on a single line which is not really easy to read. Instead I would like to change the display to something like that.
Is it possible ? How can I do it ?
@Seldaek commented on GitHub (May 20, 2016):
It's not possible by default, but you could implement your own formatter that extends the LineFormatter and replaces \n with real new lines for example. TBH we already have too many options on it I have to say so I am quite reluctant to add even more.