Documentation
¶
Index ¶
Constants ¶
View Source
const LevelTrace = slog.Level(-8)
LevelTrace is a custom slog.Level used to distinguish trace logging.
Variables ¶
This section is empty.
Functions ¶
func ContextAttr ¶
ContextAttr appends a slog.Attr to the provided context.Context so that it will be included in any slog.Record created with such context.
func GetLogLevel ¶
Types ¶
type Level ¶
Level is a custom slog.Leveler that adds custom levels support extending slog.Level.
func (*Level) UnmarshalText ¶
UnmarshalText implements encoding.TextUnmarshaler. It's case-insensitive.
Click to show internal directories.
Click to hide internal directories.