Documentation ¶
Overview ¶
Package log is a context wrapper around slog.Logger
Index ¶
- func AppendSinks(ctx context.Context, s ...slog.Sink) context.Context
- func Critical(ctx context.Context, msg string, fields ...slog.Field)
- func Debug(ctx context.Context, msg string, fields ...slog.Field)
- func Error(ctx context.Context, msg string, fields ...slog.Field)
- func Fatal(ctx context.Context, msg string, fields ...slog.Field)
- func Fork(ctx, loggerCtx context.Context) context.Context
- func Info(ctx context.Context, msg string, fields ...slog.Field)
- func Leveled(ctx context.Context, level slog.Level) context.Context
- func Named(ctx context.Context, name string) context.Context
- func Stderr(ctx context.Context) context.Context
- func Stdlib(ctx context.Context, level slog.Level) *log.Logger
- func Sync(ctx context.Context)
- func Warn(ctx context.Context, msg string, fields ...slog.Field)
- func With(ctx context.Context, l slog.Logger) context.Context
- func WithTB(ctx context.Context, t testing.TB, opts *slogtest.Options) context.Context
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.