Documentation
¶
Index ¶
- Constants
- func NewLogger(level slog.Leveler) *slog.Logger
- type LevelHandler
- func (h *LevelHandler) Enabled(_ context.Context, level slog.Level) bool
- func (h *LevelHandler) Handle(ctx context.Context, r slog.Record) error
- func (h *LevelHandler) Handler() slog.Handler
- func (h *LevelHandler) WithAttrs(attrs []slog.Attr) slog.Handler
- func (h *LevelHandler) WithGroup(name string) slog.Handler
- type Logger
Constants ¶
View Source
const LevelTrace = slog.Level(-8)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type LevelHandler ¶
type LevelHandler struct {
// contains filtered or unexported fields
}
func NewLevelHandler ¶
func NewLevelHandler(level slog.Leveler, h slog.Handler) *LevelHandler
func (*LevelHandler) Handler ¶
func (h *LevelHandler) Handler() slog.Handler
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
func NewDefaultLogger ¶
func NewDefaultLogger() *Logger
Click to show internal directories.
Click to hide internal directories.