Documentation ¶
Index ¶
- func WithAttrs(logger *slog.Logger, ctx context.Context, level slog.Level, msg string, ...)
- func WithParams(logger *slog.Logger, ctx context.Context, params Params)
- type ParamGroup
- func (pg ParamGroup) Clone() ParamGroup
- func (pg ParamGroup) Count() int
- func (pg ParamGroup) Delete(key string)
- func (pg ParamGroup) Exists(key string) bool
- func (pg ParamGroup) Get(key string) (v any, exists bool)
- func (pg ParamGroup) LogValue() (value slog.Value)
- func (pg *ParamGroup) Set(key string, v any)
- type Params
- func (lp *Params) Clone() Params
- func (lp *Params) Delete(key string)
- func (lp *Params) Exists(key string) bool
- func (lp *Params) Get(key string) (v any, exists bool)
- func (lp *Params) LogValue() slog.Value
- func (lp *Params) Serialize() (attrs []slog.Attr, level slog.Level)
- func (lp *Params) Set(key string, v any)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ParamGroup ¶
func (ParamGroup) Clone ¶
func (pg ParamGroup) Clone() ParamGroup
func (ParamGroup) Count ¶
func (pg ParamGroup) Count() int
func (ParamGroup) Delete ¶
func (pg ParamGroup) Delete(key string)
func (ParamGroup) Exists ¶
func (pg ParamGroup) Exists(key string) bool
func (ParamGroup) LogValue ¶
func (pg ParamGroup) LogValue() (value slog.Value)
func (*ParamGroup) Set ¶
func (pg *ParamGroup) Set(key string, v any)
Click to show internal directories.
Click to hide internal directories.