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

Colored JSON logs #2998

Open
brutus333 opened this issue Nov 28, 2024 · 0 comments
Open

Colored JSON logs #2998

brutus333 opened this issue Nov 28, 2024 · 0 comments

Comments

@brutus333
Copy link




Is your feature request related to a problem? Please describe.
Since all our logs are issued in the JSON format, we needed a way to see them in a nice way in k9s.

Describe the solution you'd like
I already implemented a simple solution which is preserving JSON format but adds pretty printing and coloring to the output.

Describe alternatives you've considered
I tried the jq-based plugin but it is not so good since it is piping the output of the kubectl command to jq and to less, making the navigation through the logs less intuitive and k9s-native.

Additional context
A PR will follow.
This functionality might overlap partially the one, more involved, of PR: #2973. However, I believe a simpler solution might also have it's place in k9s.

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