micw/server/logic/err/log.go
2024-11-13 22:10:13 +01:00

14 lines
279 B
Go

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)
}