Documentation
¶
Index ¶
- func Debug(msg string, args ...any)
- func DebugContext(ctx context.Context, msg string, args ...any)
- func DebugEnabled() bool
- func Error(msg string, args ...any)
- func ErrorContext(ctx context.Context, msg string, args ...any)
- func Info(msg string, args ...any)
- func InfoContext(ctx context.Context, msg string, args ...any)
- func Log(ctx context.Context, level slog.Level, msg string, args ...any)
- func LogAttrs(ctx context.Context, level slog.Level, msg string, attrs ...slog.Attr)
- func Logger() *slog.Logger
- func SetDefaultLoggerLevel(logLevel string)
- func SetLogger(l *slog.Logger)
- func Warn(msg string, args ...any)
- func WarnContext(ctx context.Context, msg string, args ...any)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DebugContext ¶
DebugContext calls [Logger.DebugContext] on the current logger.
func DebugEnabled ¶ added in v0.4.4
func DebugEnabled() bool
func ErrorContext ¶
ErrorContext calls [Logger.ErrorContext] on the current logger.
func InfoContext ¶
InfoContext calls [Logger.InfoContext] on the current logger.
func SetDefaultLoggerLevel ¶
func SetDefaultLoggerLevel(logLevel string)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.