colorlog

package
v0.84.0 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2026 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(label string) *slog.Logger

Types

type ColorLogHandler

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

func (*ColorLogHandler) Enabled

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

func (*ColorLogHandler) Handle

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

func (*ColorLogHandler) WithAttrs

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

func (*ColorLogHandler) WithGroup

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