Documentation
¶
Index ¶
- Variables
- type Event
- func (e *Event) Bool(key string, val bool) types.Event
- func (e *Event) Err(err error) types.Event
- func (e *Event) Float32(key string, val float32) types.Event
- func (e *Event) Float64(key string, val float64) types.Event
- func (e *Event) IPAddr(key string, ipAddr net.IP) types.Event
- func (e *Event) Int(key string, val int) types.Event
- func (e *Event) Int16(key string, val int16) types.Event
- func (e *Event) Int32(key string, val int32) types.Event
- func (e *Event) Int64(key string, val int64) types.Event
- func (e *Event) Int8(key string, val int8) types.Event
- func (e *Event) MACAddr(key string, macAddr net.HardwareAddr) types.Event
- func (e *Event) Msg(msg string)
- func (e *Event) Msgf(format string, args ...interface{})
- func (e *Event) Str(key string, val string) types.Event
- func (e *Event) Uint(key string, val uint) types.Event
- func (e *Event) Uint16(key string, val uint16) types.Event
- func (e *Event) Uint32(key string, val uint32) types.Event
- func (e *Event) Uint64(key string, val uint64) types.Event
- func (e *Event) Uint8(key string, val uint8) types.Event
- type Logger
- func (s *Logger) Debug() types.Event
- func (s *Logger) Error() types.Event
- func (s *Logger) Fatal() types.Event
- func (s *Logger) Info() types.Event
- func (s *Logger) SetLevel(level types.Level)
- func (s *Logger) SubLogger(source string) types.Logger
- func (s *Logger) Trace() types.Event
- func (s *Logger) Warn() types.Event
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ReplaceAttr = func(_ []string, a slog.Attr) slog.Attr { switch a.Key { case slog.TimeKey: a.Key = types.TimestampKey } return a } )
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.