Documentation
¶
Index ¶
- type Handler
- func (h *Handler) Enabled(_ context.Context, level slog.Level) bool
- func (h *Handler) Handle(ctx context.Context, r slog.Record) error
- func (h *Handler) WithAttrs(attrs []slog.Attr) slog.Handler
- func (h *Handler) WithColor(colorOn bool) *Handler
- func (h *Handler) WithColorMode(cm common.ColorMode) *Handler
- func (h *Handler) WithGroup(name string) slog.Handler
- func (h *Handler) WithHandlers(handlers []slog.Handler) *Handler
- func (h *Handler) WithLevel(level slog.Level) *Handler
- func (h *Handler) WithLeveler(level slog.Leveler) *Handler
- func (h *Handler) WithSource(s bool) *Handler
- func (h *Handler) WithTime(t bool) *Handler
- func (h *Handler) WithTimeFormat(t string) *Handler
- func (h *Handler) WithUptime(u bool) *Handler
- func (h *Handler) WithWriter(out io.Writer) *Handler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func NewHandler ¶
func NewHandler() *Handler
func (*Handler) WithSource ¶
func (*Handler) WithTimeFormat ¶
func (*Handler) WithUptime ¶
Click to show internal directories.
Click to hide internal directories.