-
Notifications
You must be signed in to change notification settings - Fork 73
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
add flag to set log-format #354
Conversation
Signed-off-by: Sean Liao <sean@liao.dev>
Hi @seankhliao. Thanks for your PR. I'm waiting for a cert-manager member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
/ok-to-test |
Hey, thanks for this! I love JSON logs and this looks like a great improvement. I think this feature would massively benefit from adding the log format option to the Helm chart. A similar PR was recently merged in trust-manager for JSON logs which would be a useful reference for implementing it in istio-csr: cert-manager/trust-manager#354 Would you be able to add the option to the Helm chart? |
Signed-off-by: Sean Liao <sean+git@liao.dev>
Sure, I've added the helm chart changes |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
/approve
Thanks so much for this, really appreciate it! I've tested locally and confirmed it works 😁
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: SgtCoDFish The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
d53f5a2
into
cert-manager:main
I would like logs to be output in json format.
This uses the same logs api libraries as cert-manager itself,
though it doesn't expose the full logging configuration surface,
just an extra
--log-format
flag.Example original output:
Example output with
--log-format json
: