Log hook

The log hook is the hook called when a critical error occur (for example a 500 status code, or a problem with KCD for decoding a value)

A log hook must have this signature:

type LogHook func(w http.ResponseWriter, r *http.Request, err error)
circle-info

Check out the default log hook implementation herearrow-up-right.

Check out the signature of the log hookarrow-up-right.

Last updated

Was this helpful?