-
Notifications
You must be signed in to change notification settings - Fork 80
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
JSON output from karmor logs --json
is not beautified
#439
Comments
This sounds good to me. Though users can use external tools like jq for beautifying but having the ability to do so in karmor itself might come in handy if user doesn't have the tools present. |
Agree with Rudraksh here, We also ingest these logs to some logging solutions which will prefer the default that we have now. For flag I think we can go for something like |
So, the final command will look something like This will require a docs update as |
Don't remove Edit: We can discuss more on if jsonindent is the name we prefer because it doesn't sound intuitive in my head. |
Yes... let's keep the current output and also the |
This looks good, so the final commands will look something like: The And the normal log output: Right? |
Hi, @navin772 ! Can I work on this enhancement? |
Currently
karmor logs --json
gives a cluttered output in a single line:By using
MarshalIndent
instead ofMarshal
we can get beautified output like this:Let me know if this is required, I will create a PR for the same.
The text was updated successfully, but these errors were encountered: