cert-manager / webhook-example

A cert-manager sample repository for creating an ACME DNS01 solver webhook
Apache License 2.0
100 stars 398 forks source link

Add logging example #37

Open irbekrm opened 2 years ago

irbekrm commented 2 years ago

See this Slack conversation for context- it would be great if we could show users how to get log output with the example webhook (i.e replace fmt.Printf here with a log line

mhkarimi1383 commented 1 month ago

@irbekrm I think you can use github.com/cert-manager/cert-manager/pkg/logs but I used zap logger both of them are OK but if you want to have same log format I think you can use that

checkout https://github.com/ParminCloud/arvancloud-certmanager-issuer