Documentation
¶
Index ¶
- func EmbedLogger(ctx context.Context, opts ...buckets.BucketConfigurator) context.Context
- func LogWithContext(ctx context.Context, level slog.Level, msg string)
- func UpdateContext(ctx context.Context, attrs ...any)
- func WithGroup(ctx context.Context, name string, opts ...buckets.BucketConfigurator) context.Context
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EmbedLogger ¶
EmbedLogger embeds a contextual logger into the passed context.Context. Returns a new context.Context with the embeded logger.
func LogWithContext ¶
LogWithContext logs everything stored into the context by calls to UpdateContext
func UpdateContext ¶
UpdateContext updates a series of [key, values] from the current logging context the input is the same as slog args, i.e.: pairs of [string, any] or slog.Attr's. Malformed inputs that don't conform to this, will be assigned to a BADKEY key.
Types ¶
This section is empty.
Directories
¶
| Path | Synopsis |
|---|---|
|
basic
command
|
|
|
custom_logger
command
|
|
|
groups
command
|
|
|
http_middleware
command
|
|
|
middlewares
|
|
Click to show internal directories.
Click to hide internal directories.
