Closed tedli closed 1 year ago
If it's a common needs, I'm glad to work on this.
This issue is stale because it has been open for 30 days with no activity.
This issue was closed because it has been inactive for 14 days since being marked as stale.
The user program can implement such logic independently, but a bundled one could be convenient. And share a common API.
Then the user program can serve this handler like the
pprof
,promhttp.Handler
do.If so, we could run with info or warning level in production, and turn to debug if something goes wrong. Something like:
We can also do some more with
Fields
, turning log level to debug only if the log entry has specific fields.