func (l *defaultLogger) parseRequestParams(r Request) (safeParams wlog.Param, unsafeParams wlog.Param) {
	safeMap := make(map[string]interface{})
	unsafeMap := make(map[string]interface{})

	for pathParamKey, pathParamVal := range r.RouteInfo.PathParams {
		processKeyValPair(pathParamKey, pathParamVal, safeMap, unsafeMap, l.pathParamPerms, r.PathParamPerms)
	}
	for k, valSlice := range r.Request.URL.Query() {
		for _, v := range valSlice {
			processKeyValPair(k, v, safeMap, unsafeMap, l.queryParamPerms, r.QueryParamPerms)
		}
	}
	for k := range r.Request.Header {
		processKeyValPair(k, r.Request.Header.Get(k), safeMap, unsafeMap, l.headerParamPerms, r.HeaderParamPerms)
	}
	return wlog.NewParam(func(entry wlog.LogEntry) {
			entry.AnyMapValue(paramsKey, safeMap)
		}), wlog.NewParam(func(entry wlog.LogEntry) {
			entry.AnyMapValue(wlog.UnsafeParamsKey, unsafeMap)
		})
}
// parseRequestParams parses the path, header and query parameters. If any of the parameters are in a respective
// "forbidden" list, they are not logged at all. Otherwise, if a parameter is whitelisted it is added to safeParams and
// is added to unsafeParams otherwise. If a single key has multiple values, the value for that key in the returned field
// will be a slice that contains all of the values for the key.
parseRequestParams parses the path, header and query parameters. If any of the parameters are in a respective
"forbidden" list, they are not logged at all. Otherwise, if a parameter is whitelisted it is added to safeParams and
is added to unsafeParams otherwise. If a single key has multiple values, the value for that key in the returned field
will be a slice that contains all of the values for the key.
// parseRequestParams parses the path header and query parameters . If any of the parameters are in a respective // " forbidden " list they are not logged at all . Otherwise if a parameter is whitelisted it is added to safeParams and // is added to unsafeParams otherwise . If a single key has multiple values the value for that key in the returned field // will be a slice that contains all of the values for the key .
func (l *defaultLogger) parseRequestParams(r Request) (safeParams wlog.Param, unsafeParams wlog.Param) {
	safeMap := make(map[string]interface{})
	unsafeMap := make(map[string]interface{})
	for pathParamKey, pathParamVal := range r.RouteInfo.PathParams {
		processKeyValPair(pathParamKey, pathParamVal, safeMap, unsafeMap, l.pathParamPerms, r.PathParamPerms)
	}
	for k, valSlice := range r.Request.URL.Query() {
		for _, v := range valSlice {
			processKeyValPair(k, v, safeMap, unsafeMap, l.queryParamPerms, r.QueryParamPerms)
		}
	}
	for k := range r.Request.Header {
		processKeyValPair(k, r.Request.Header.Get(k), safeMap, unsafeMap, l.headerParamPerms, r.HeaderParamPerms)
	}
	return wlog.NewParam(func(entry wlog.LogEntry) {
			entry.AnyMapValue(paramsKey, safeMap)
		}), wlog.NewParam(func(entry wlog.LogEntry) {
			entry.AnyMapValue(wlog.UnsafeParamsKey, unsafeMap)
		})
}
func ( l * defaultLogger ) parseRequestParams ( r Request ) ( safeParams wlog . Param , unsafeParams wlog . Param ) { safeMap := make ( map [ string ] interface { } ) unsafeMap := make ( map [ string ] interface { } ) for pathParamKey , pathParamVal := range r . RouteInfo . PathParams { processKeyValPair ( pathParamKey , pathParamVal , safeMap , unsafeMap , l . pathParamPerms , r . PathParamPerms ) } for k , valSlice := range r . Request . URL . Query ( ) { for _ , v := range valSlice { processKeyValPair ( k , v , safeMap , unsafeMap , l . queryParamPerms , r . QueryParamPerms ) } } for k := range r . Request . Header { processKeyValPair ( k , r . Request . Header . Get ( k ) , safeMap , unsafeMap , l . headerParamPerms , r . HeaderParamPerms ) } return wlog . NewParam ( func ( entry wlog . LogEntry ) { entry . AnyMapValue ( paramsKey , safeMap ) } ) , wlog . NewParam ( func ( entry wlog . LogEntry ) { entry . AnyMapValue ( wlog . UnsafeParamsKey , unsafeMap ) } ) }
parseRequestParams parses the path, header and query parameters.
parseRequestParams parses the path header and query parameters .