Documentation
¶
Index ¶
- Constants
- Variables
- type Level
- type Logger
- func (l *Logger) Debug(msg string, args ...any)
- func (l *Logger) Error(msg string, args ...any)
- func (l *Logger) Fatal(msg string, args ...any)
- func (l *Logger) Info(msg string, args ...any)
- func (l *Logger) Log(level slog.Level, msg string, args ...any)
- func (l *Logger) Trace(msg string, args ...any)
- func (l *Logger) Warn(msg string, args ...any)
- func (l *Logger) With(args ...any) *Logger
- func (l *Logger) WithCtx(ctx context.Context, args ...any) *Logger
Constants ¶
View Source
const ( LevelTrace = slog.Level(-8) LevelFatal = slog.Level(12) )
Variables ¶
View Source
var JSONReplaceAttr = getReplaceAttr(false)
View Source
var PrettyReplaceAttr = getReplaceAttr(true)
Functions ¶
This section is empty.
Types ¶
type Level ¶
type Level struct {
// contains filtered or unexported fields
}
func (*Level) UnmarshalText ¶
Click to show internal directories.
Click to hide internal directories.