func LoggerFromRequest(r *http.Request, l *zap.SugaredLogger) *zap.SugaredLogger {
	d := getDetails(r)
	if d == nil {
		return l
	}

	return l.With("request_id", d.RequestID)
}
// LoggerFromRequest returns a child logger of the given logger with predefined
// fields. It should be used when logging from within a request handler, so that
// those logs can be correlated.
LoggerFromRequest returns a child logger of the given logger with predefined
fields. It should be used when logging from within a request handler, so that
those logs can be correlated.
// LoggerFromRequest returns a child logger of the given logger with predefined // fields . It should be used when logging from within a request handler so that // those logs can be correlated .
func LoggerFromRequest(r *http.Request, l *zap.SugaredLogger) *zap.SugaredLogger {
	d := getDetails(r)
	if d == nil {
		return l
	}
	return l.With("request_id", d.RequestID)
}
func LoggerFromRequest ( r * http . Request , l * zap . SugaredLogger ) * zap . SugaredLogger { d := getDetails ( r ) if d == nil { return l } return l . With ( " " , d . RequestID ) }
LoggerFromRequest returns a child logger of the given logger with predefined
fields.
LoggerFromRequest returns a child logger of the given logger with predefined fields .