Documentation
¶
Index ¶
- Constants
- Variables
- func FormatStrings() []string
- func LevelStrings() []string
- func LoggerTrace(logger *slog.Logger, msg string, args ...any)
- func Trace(msg string, args ...any)
- type Format
- type Level
- func (l Level) Level() slog.Level
- func (l Level) MarshalJSON() ([]byte, error)
- func (l Level) MarshalText() ([]byte, error)
- func (l *Level) Set(s string) error
- func (l Level) String() string
- func (l Level) Type() string
- func (l *Level) UnmarshalJSON(i []byte) error
- func (l *Level) UnmarshalText(text []byte) error
Constants ¶
View Source
const ( LevelTrace = Level(slog.LevelDebug) - 1 LevelDebug = Level(slog.LevelDebug) LevelInfo = Level(slog.LevelInfo) LevelWarn = Level(slog.LevelWarn) LevelError = Level(slog.LevelError) )
Variables ¶
View Source
var ErrUnknownFormat = errors.New("unknown format")
Functions ¶
func FormatStrings ¶
func FormatStrings() []string
func LevelStrings ¶
func LevelStrings() []string
Types ¶
type Format ¶
type Format uint8
func (Format) MarshalJSON ¶
func (Format) MarshalText ¶
func (*Format) UnmarshalJSON ¶
func (*Format) UnmarshalText ¶
type Level ¶
func (Level) MarshalJSON ¶
func (Level) MarshalText ¶
func (*Level) UnmarshalJSON ¶
func (*Level) UnmarshalText ¶
Click to show internal directories.
Click to hide internal directories.