colorlog

package
v0.0.72 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 24, 2024 License: BSD-3-Clause Imports: 5 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New added in v0.0.69

func New(label string) *slog.Logger

Types

type ColorLogHandler added in v0.0.69

type ColorLogHandler struct {
	// contains filtered or unexported fields
}

func (*ColorLogHandler) Enabled added in v0.0.69

func (h *ColorLogHandler) Enabled(_ context.Context, level slog.Level) bool

func (*ColorLogHandler) Handle added in v0.0.69

func (h *ColorLogHandler) Handle(_ context.Context, r slog.Record) error

func (*ColorLogHandler) WithAttrs added in v0.0.69

func (h *ColorLogHandler) WithAttrs(attrs []slog.Attr) slog.Handler

func (*ColorLogHandler) WithGroup added in v0.0.69

func (h *ColorLogHandler) WithGroup(name string) slog.Handler

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL