Documentation ¶
Index ¶
- type L
- func (l L) A(name string, value any) L
- func (l L) Attr(attr slog.Attr) L
- func (l L) Context(ctx context.Context) context.Context
- func (l L) Debug(ctx context.Context, msg string)
- func (l L) Err(err error) L
- func (l L) Error(ctx context.Context, msg string)
- func (l L) Handler(ctx context.Context) slog.Handler
- func (l L) Info(ctx context.Context, msg string)
- func (l L) Log(ctx context.Context, level slog.Level, msg string)
- func (l L) LogFromWrapper(ctx context.Context, additionalWrapDepth int, level slog.Level, msg string)
- func (l L) NoSource() L
- func (l L) Warn(ctx context.Context, msg string)
- func (l L) Wrap() L
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type L ¶
type L struct {
// contains filtered or unexported fields
}
func (L) LogFromWrapper ¶
func (l L) LogFromWrapper(ctx context.Context, additionalWrapDepth int, level slog.Level, msg string)
handles a new log record
Click to show internal directories.
Click to hide internal directories.