Documentation ¶
Index ¶
- type AttrArray
- type AttrStaticArray
- type Attrs
- func (a Attrs) Add(attr slog.Attr)
- func (a Attrs) Any(key string, val any)
- func (a Attrs) Bool(key string, val bool)
- func (a Attrs) Duration(key string, duration time.Duration)
- func (a Attrs) Float64(key string, val float64)
- func (a Attrs) Get() []slog.Attr
- func (a Attrs) Int(key string, val int)
- func (a Attrs) Int64(key string, val int64)
- func (a Attrs) String(key string, val string)
- func (a Attrs) Time(key string, val time.Time)
- func (a Attrs) Uint64(key string, val uint64)
- type NameWithSeparator
- type NamedLoggerMaker
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AttrStaticArray ¶
type AttrStaticArray struct {
// contains filtered or unexported fields
}
func (*AttrStaticArray) Add ¶
func (a *AttrStaticArray) Add(attr slog.Attr)
func (AttrStaticArray) GetAttrs ¶
func (a AttrStaticArray) GetAttrs() []slog.Attr
func (*AttrStaticArray) Reset ¶
func (a *AttrStaticArray) Reset()
type NameWithSeparator ¶
type NameWithSeparator struct { // KeyConfig will be used to build the value of the component field. KeyConfig field.KeyConfig // ComponentTag will be used as the key of the component field. ComponentTag string }
func (NameWithSeparator) MakeNamedLogger ¶
Click to show internal directories.
Click to hide internal directories.