Documentation
¶
Index ¶
- func LogitAttrsModeEnv() common.AttrsMode
- func LogitColorModeEnv() common.ColorMode
- func LogitLevelEnv() slog.Level
- func LogitSymbolSetEnv() common.SymbolSet
- func LogitTimeFormatEnv() string
- func LogitUptimeFormatEnv() common.UptimeFormat
- func LogitWriterEnv() io.Writer
- 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) WithReplaceAttr(replaceAttr common.ReplaceAttr) *Handler
- func (h *Handler) WithSymbolSet(symbolSet common.SymbolSet) *Handler
- func (h *Handler) WithTimeFormat(t string) *Handler
- func (h *Handler) WithTpl(tpl ...common.Tpl) *Handler
- func (h *Handler) WithUptimeFormat(uptimeFmt common.UptimeFormat) *Handler
- func (h *Handler) WithWriter(out io.Writer) *Handler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LogitAttrsModeEnv ¶ added in v0.7.0
func LogitColorModeEnv ¶ added in v0.3.0
func LogitLevelEnv ¶ added in v0.3.0
func LogitSymbolSetEnv ¶ added in v0.3.0
func LogitTimeFormatEnv ¶ added in v0.3.0
func LogitTimeFormatEnv() string
func LogitUptimeFormatEnv ¶ added in v0.3.0
func LogitUptimeFormatEnv() common.UptimeFormat
func LogitWriterEnv ¶ added in v0.3.0
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func NewHandler ¶
func NewHandler() *Handler
func (*Handler) WithReplaceAttr ¶ added in v0.4.0
func (h *Handler) WithReplaceAttr(replaceAttr common.ReplaceAttr) *Handler
func (*Handler) WithSymbolSet ¶ added in v0.2.0
func (*Handler) WithTimeFormat ¶
func (*Handler) WithUptimeFormat ¶ added in v0.2.0
func (h *Handler) WithUptimeFormat(uptimeFmt common.UptimeFormat) *Handler
Click to show internal directories.
Click to hide internal directories.