Documentation ¶
Index ¶
- Constants
- Variables
- type Log
- func (l *Log) Debug(fmtString string)
- func (l *Log) Debugf(fmtString string, args ...interface{})
- func (l *Log) Error(fmtString string)
- func (l *Log) Errorf(fmtString string, args ...interface{})
- func (l *Log) Info(fmtString string)
- func (l *Log) Infof(fmtString string, args ...interface{})
- func (l *Log) NeedRedact(originalString string, regexP *regexp.Regexp) bool
- func (l *Log) Redact(fmtedString string) string
- func (l *Log) Warn(fmtString string)
- func (l *Log) Warnf(fmtString string, args ...interface{})
Constants ¶
View Source
const (
RedactValue = "XXXXXXXX"
)
Variables ¶
View Source
var RedactKeyList = []*regexp.Regexp{ regexp.MustCompile(`(\\?"password\\?":\\?")([^"]*)(\\?")`), regexp.MustCompile(`(\\?"additional_trust_bundle\\?":\\?")([^"]*)(\\?")`), regexp.MustCompile(`(-----BEGIN CERTIFICATE-----\n)([^-----]*)(-----END CERTIFICATE-----)`), }
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.