Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CensorFormatter ¶
type CensorFormatter struct {
CensorItems []CensorItem
UnderlyingFormatter log.Formatter
}
CensorFormatter makes sure sensitive data is not logged. It works as a middleware and sensors the data before sending it to an underlying formatter
type CensorItem ¶
CensorItem is something that should be censored, Sensitive will be replaced with Replacement
Click to show internal directories.
Click to hide internal directories.