Documentation ¶
Index ¶
- func Critical(ctx context.Context, msg string, fields ...any)
- func Debug(ctx context.Context, msg string, fields ...any)
- func Error(ctx context.Context, msg string, fields ...any)
- func Fatal(ctx context.Context, msg string, fields ...any)
- func Info(ctx context.Context, msg string, fields ...any)
- func Make(f Format, w io.Writer) slog.Logger
- func SetCaptureFunc(fn CaptureFunc)
- func SetFormat(format Format)
- func SetLevel(level Level)
- func Warn(ctx context.Context, msg string, fields ...any)
- func With(ctx context.Context, fields ...Field) context.Context
- type CaptureFunc
- type Field
- type Format
- type Level
- type Map
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetCaptureFunc ¶
func SetCaptureFunc(fn CaptureFunc)
Types ¶
type CaptureFunc ¶
type CaptureFunc func(err error)
Click to show internal directories.
Click to hide internal directories.