log/filtered/filtered.go
func FilterSensitive(sensitive []string, elided interface{}) Filter {
	return FilterFunc(func(key string, v interface{}) interface{} {
		lower := strings.ToLower(key)
		for _, s := range sensitive {
			if lower == s {
				return elided
			}
		}

		return v
	})
}
func FilterSensitive(sensitive []string, elided interface{}) Filter {
	return FilterFunc(func(key string, v interface{}) interface{} {
		lower := strings.ToLower(key)
		for _, s := range sensitive {
			if lower == s {
				return elided
			}
		}

		return v
	})
}
// FilterSensitive creates a Filter that filters most sensitive data like passwords,
// keys, access_tokens, etc. and replaces them with the elided value