Skip to content

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