Documentation
¶
Overview ¶
Package log provides structured logging with automatic token redaction.
Index ¶
- func RedactString(s string) string
- type Field
- type Level
- type Logger
- func (l *Logger) Debug(msg string, fields ...Field)
- func (l *Logger) Error(msg string, fields ...Field)
- func (l *Logger) Info(msg string, fields ...Field)
- func (l *Logger) IsEnabled(level Level) bool
- func (l *Logger) Log(level Level, msg string, fields ...Field)
- func (l *Logger) Warn(msg string, fields ...Field)
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RedactString ¶
RedactString returns a copy of s with known token query parameters redacted.
Types ¶
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
Logger writes structured, redacted log entries.
Click to show internal directories.
Click to hide internal directories.