Skip to content
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

Feature request: display format when viewing JSON logs #31

Open
antoine-gallix opened this issue Feb 15, 2024 · 0 comments
Open

Feature request: display format when viewing JSON logs #31

antoine-gallix opened this issue Feb 15, 2024 · 0 comments

Comments

@antoine-gallix
Copy link

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.

@antoine-gallix antoine-gallix changed the title Feature request: display format Feature request: display format when viewing JSON logs Feb 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant