Documentation ¶
Index ¶
- func Context(parent context.Context, handler slog.Handler) context.Context
- func Debug(ctx context.Context, msg string, args ...any)
- func Error(ctx context.Context, msg string, args ...any)
- func Handler(ctx context.Context) slog.Handler
- func Info(ctx context.Context, msg string, args ...any)
- func NewHandler() *ctxHandler
- func Warn(ctx context.Context, msg string, args ...any)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewHandler ¶
func NewHandler() *ctxHandler
Create a new handler instance This handler simply uses the supplied ctx to check for a Handler and uses it This handler can be used directly or installed as slog.Default()
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.