micw/server/logic/err/log.go

14 lines
279 B
Go
Raw Permalink Normal View History

2024-11-13 21:10:13 +00:00
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)
}