Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type URLSanitizerHook ¶
type URLSanitizerHook struct {
// contains filtered or unexported fields
}
URLSanitizerHook stores which gRPC methods to perform sanitization for.
func NewURLSanitizerHook ¶
func NewURLSanitizerHook() *URLSanitizerHook
NewURLSanitizerHook returns a new logrus hook for sanitizing URLs.
func (*URLSanitizerHook) AddPossibleGrpcMethod ¶
func (hook *URLSanitizerHook) AddPossibleGrpcMethod(methods ...string)
AddPossibleGrpcMethod adds method names that we should sanitize URLs from their logs.
func (*URLSanitizerHook) Fire ¶
func (hook *URLSanitizerHook) Fire(entry *logrus.Entry) error
Fire is called by logrus.
func (*URLSanitizerHook) Levels ¶
func (hook *URLSanitizerHook) Levels() []logrus.Level
Levels is called by logrus.
Click to show internal directories.
Click to hide internal directories.