scrubber

package
v0.0.0-...-7d1b61d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 19, 2023 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Scrub

func Scrub(s string) string

Scrub sanitizes a string containing an error such that any occurrence of IP endpoints is scrubbed.

Types

type Logger

type Logger struct {
	model.Logger
}

Logger is a Logger with scrubbing. All messages are scrubbed including the ones that won't be emitted. As such, this logger is less efficient than a logger without scrubbing.

func (*Logger) Debug

func (sl *Logger) Debug(message string)

Debug scrubs and emits a debug message.

func (*Logger) Debugf

func (sl *Logger) Debugf(format string, v ...interface{})

Debugf scrubs, formats, and emits a debug message.

func (*Logger) Info

func (sl *Logger) Info(message string)

Info scrubs and emits an informational message.

func (*Logger) Infof

func (sl *Logger) Infof(format string, v ...interface{})

Infof scrubs, formats, and emits an informational message.

func (*Logger) Warn

func (sl *Logger) Warn(message string)

Warn scrubs and emits a warning message.

func (*Logger) Warnf

func (sl *Logger) Warnf(format string, v ...interface{})

Warnf scrubs, formats, and emits a warning message.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL