Documentation
¶
Index ¶
Constants ¶
View Source
const MAX_WRITE_RETRIES = 10
View Source
const SANITIZE_REPLACEMENT_STRING string = "***"
Variables ¶
View Source
var SENSITIVE_FIELD_NAMES = []string{
"headers",
"user",
"passw",
"token",
"key",
"secret",
}
SENSITIVE_FIELD_NAMES is a list of field names that should be sanitized.
Functions ¶
func NewScrubbingIoWriter ¶
func NewScrubbingIoWriter(writer io.Writer, scrubDict ScrubbingDict) io.Writer
func NewScrubbingWriter ¶
func NewScrubbingWriter(writer zerolog.LevelWriter, scrubDict ScrubbingDict) zerolog.LevelWriter
Types ¶
type ScrubbingDict ¶
type ScrubbingDict map[string]scrubStruct
func GetScrubDictFromConfig ¶
func GetScrubDictFromConfig(config configuration.Configuration) ScrubbingDict
Click to show internal directories.
Click to hide internal directories.