Documentation
¶
Index ¶
- func Debug(msg string, args ...any)
- func DebugContext(ctx context.Context, msg string, args ...any)
- func Enabled(ctx context.Context, level slog.Level) bool
- func Error(msg string, args ...any)
- func ErrorContext(ctx context.Context, msg string, args ...any)
- func GetLogger() *slog.Logger
- 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 SetLogger(l *slog.Logger)
- func Warn(msg string, args ...any)
- func WarnContext(ctx context.Context, msg string, args ...any)
- func With(args ...any) *slog.Logger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DebugContext ¶
DebugContext calls [(slog.Logger).DebugContext] on the Depot logger, if configured.
func ErrorContext ¶
ErrorContext calls [(slog.Logger).ErrorContext] on the Depot logger, if configured.
func InfoContext ¶
InfoContext calls [(slog.Logger).InfoContext] on the Depot logger, if configured.
func WarnContext ¶
WarnContext calls [(slog.Logger).WarnContext] on the Depot logger, if configured.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.