package logicErr import ( "log" "net/http" ) type HttpErrLogger = func(err *Err, r *http.Request) var DefaultHttpErrLogger HttpErrLogger = func(err *Err, r *http.Request) { log.Printf("[ERR] HTTP failed to handle %s request to %s: %s\n", r.Method, r.URL.Path, err.Msg) }