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)

Check out the default log hook implementation here.

Check out the signature of the log hook.

Last updated