Commit 0772312
Changed files (1)
pkg
log
pkg/log/init.go
@@ -9,6 +9,7 @@ import (
func init() {
mapper.Register[*http.Request, Fields](func(r *http.Request) Fields {
return Fields{
+ "host": r.URL.Host,
"method": r.Method,
"path": r.URL.Path,
"remote_host": r.RemoteAddr,