Versions in this module Expand all Collapse all v1 v1.0.1 Apr 30, 2024 Changes in this version + func CopyStandardLogTo(l Level) error + func Debugf(format string, v ...any) + func DebugfAtDepth(depth int, format string, v ...any) + func Infof(format string, v ...any) + func InfofAtDepth(depth int, format string, v ...any) + func IsLogging(level Level) bool + func LocalStack(excludeTopN int) []byte + func SetLevel(newLevel Level) + func SetTarget(target Emitter) + func Stacks(all bool) []byte + func Traceback(format string, v ...any) + func TracebackAll(format string, v ...any) + func Warningf(format string, v ...any) + func WarningfAtDepth(depth int, format string, v ...any) + type BasicLogger struct + func Log() *BasicLogger + func (l *BasicLogger) Debugf(format string, v ...any) + func (l *BasicLogger) DebugfAtDepth(depth int, format string, v ...any) + func (l *BasicLogger) Infof(format string, v ...any) + func (l *BasicLogger) InfofAtDepth(depth int, format string, v ...any) + func (l *BasicLogger) IsLogging(level Level) bool + func (l *BasicLogger) SetLevel(level Level) + func (l *BasicLogger) Warningf(format string, v ...any) + func (l *BasicLogger) WarningfAtDepth(depth int, format string, v ...any) + type Emitter interface + Emit func(depth int, level Level, timestamp time.Time, format string, v ...any) + type GoogleEmitter struct + func (g GoogleEmitter) Emit(depth int, level Level, timestamp time.Time, format string, args ...any) + type JSONEmitter struct + func (e JSONEmitter) Emit(depth int, level Level, timestamp time.Time, format string, v ...any) + type K8sJSONEmitter struct + func (e K8sJSONEmitter) Emit(depth int, level Level, timestamp time.Time, format string, v ...any) + type Level uint32 + const Debug + const Info + const Warning + func (l *Level) UnmarshalJSON(b []byte) error + func (l Level) MarshalJSON() ([]byte, error) + func (l Level) String() string + type Logger interface + Debugf func(format string, v ...any) + Infof func(format string, v ...any) + IsLogging func(level Level) bool + Warningf func(format string, v ...any) + func BasicRateLimitedLogger(every time.Duration) Logger + func RateLimitedLogger(logger Logger, every time.Duration) Logger + type MultiEmitter []Emitter + func (m *MultiEmitter) Emit(depth int, level Level, timestamp time.Time, format string, v ...any) + type TestEmitter struct + func (t *TestEmitter) Emit(_ int, level Level, timestamp time.Time, format string, v ...any) + type TestLogger interface + Logf func(format string, v ...any) + type Writer struct + Next io.Writer + func (l *Writer) Emit(_ int, _ Level, _ time.Time, format string, args ...any) + func (l *Writer) Write(data []byte) (int, error)