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

Optional flag to enable logging in json format #206

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

srini-hv
Copy link

This change introduces a new global flag --json-output which when provided generates logs in JSON format. This is very helpful especially when the logs are parsed. Datadog in our case. By default, all the logs generated by Topicctl are currently flagged as errors(see attached). I'm sure there are more use cases that would get benefitted by logs in json format.

image

With Json logging enabled:

{"msg":"Partition placement already satisfies strategy 'any'","level":"info","time":"2024-06-26T12:42:46Z"}
{"msg":"Checking partition placement...","level":"info","time":"2024-06-26T12:42:46Z"}

image

@srini-hv srini-hv requested a review from a team as a code owner June 27, 2024 08:21
@srini-hv
Copy link
Author

@petedannemann @ssingudasu Can you please take a look?

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

Successfully merging this pull request may close these issues.

1 participant