You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In my opinion, JSON logs are not meant to be read as such by human eye, as one line can carry a lot of information. To really be useful in my workflow, I would need to be able to display a formatted version of each log instead of the raw JSON, while still being able to look at the whole object when highlighted.
The display format would be something like a string with placeholders, being filled by the data in the logs.
For example, let's say all my logs have at least a field called "mesage", which contain a human readable line, and another called "level". I would press a shortcut like "ctrl-D" (display), a one-line window would appear somewhere where I would type "$level $message", press enter, and all my logs would be seen in this format. Highlighting the desired log would allow me to see the whole object.
This feature would make the tool my default for analysing logs, as this is already my workflow, that I use with home-made CLI tools.
The text was updated successfully, but these errors were encountered:
antoine-gallix
changed the title
Feature request: display format
Feature request: display format when viewing JSON logs
Feb 15, 2024
In my opinion, JSON logs are not meant to be read as such by human eye, as one line can carry a lot of information. To really be useful in my workflow, I would need to be able to display a formatted version of each log instead of the raw JSON, while still being able to look at the whole object when highlighted.
The display format would be something like a string with placeholders, being filled by the data in the logs.
For example, let's say all my logs have at least a field called "mesage", which contain a human readable line, and another called "level". I would press a shortcut like "ctrl-D" (display), a one-line window would appear somewhere where I would type "$level $message", press enter, and all my logs would be seen in this format. Highlighting the desired log would allow me to see the whole object.
This feature would make the tool my default for analysing logs, as this is already my workflow, that I use with home-made CLI tools.
The text was updated successfully, but these errors were encountered: