Documentation
¶
Overview ¶
Package log is a thin slog-backed wrapper that preserves the outbrain/golib/log call surface (Debug/Info/Warning/Fatal etc.) while removing the external dependency. Output format: "YYYY-MM-DD HH:MM:SS LEVEL message".
Index ¶
- func Critical(args ...any)
- func Criticalf(format string, args ...any)
- func Debug(args ...any)
- func Debugf(format string, args ...any)
- func Error(args ...any)
- func Errorf(format string, args ...any)
- func Fatal(args ...any)
- func Fatalf(format string, args ...any)
- func Info(args ...any)
- func Infof(format string, args ...any)
- func RegisterExitHook(fn func())
- func SetLevel(l Level)
- func Warning(args ...any)
- func Warningf(format string, args ...any)
- type Level
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterExitHook ¶
func RegisterExitHook(fn func())
RegisterExitHook registers fn to be called before os.Exit in Fatal/Fatalf. Hooks run in registration order. Safe to call concurrently.
Types ¶
Click to show internal directories.
Click to hide internal directories.