func LoggerFields(r *http.Request) log.Map {
	scheme := func(r *http.Request) string {
		proto := "http"

		if r.TLS != nil {
			proto = "https"
		}

		return proto
	}

	return log.Map{
		"scheme":      scheme(r),
		"host":        r.Host,
		"url":         r.RequestURI,
		"proto":       r.Proto,
		"method":      r.Method,
		"remote_addr": r.RemoteAddr,
		"request_id":  middleware.GetReqID(r.Context()),
	}
}
// LoggerFields returns the logger's fields
LoggerFields returns the logger's fields
// LoggerFields returns the logger ' s fields
func LoggerFields(r *http.Request) log.Map {
	scheme := func(r *http.Request) string {
		proto := "http"
		if r.TLS != nil {
			proto = "https"
		}
		return proto
	}
	return log.Map{
		"scheme":      scheme(r),
		"host":        r.Host,
		"url":         r.RequestURI,
		"proto":       r.Proto,
		"method":      r.Method,
		"remote_addr": r.RemoteAddr,
		"request_id":  middleware.GetReqID(r.Context()),
	}
}
func LoggerFields ( r * http . Request ) log . Map { scheme := func ( r * http . Request ) string { proto := " " if r . TLS != nil { proto = " " } return proto } return log . Map { " " : scheme ( r ) , " " : r . Host , " " : r . RequestURI , " " : r . Proto , " " : r . Method , " " : r . RemoteAddr , " " : middleware . GetReqID ( r . Context ( ) ) , } }
LoggerFields returns the logger's fields
LoggerFields returns the logger ' s fields