logger

package
v2.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2026 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CLIHandler

type CLIHandler struct {
	slog.Handler
	// contains filtered or unexported fields
}

func NewCLIHandlerWithOptions

func NewCLIHandlerWithOptions(
	out io.Writer,
	opts slog.HandlerOptions,
) *CLIHandler

func NewDefaultCLIHandler

func NewDefaultCLIHandler(
	out io.Writer,
) *CLIHandler

func NewDefaultCLIHandlerWithVerbosity

func NewDefaultCLIHandlerWithVerbosity(
	out io.Writer,
	verboseLevel slog.Level,
) *CLIHandler

func (*CLIHandler) Handle

func (h *CLIHandler) Handle(ctx context.Context, r slog.Record) error

type Log

type Log struct {
	ColorFunc  func(format string, a ...any) string
	Level      string
	Message    string
	Attributes string
}

func (Log) String

func (l Log) String() string

Jump to

Keyboard shortcuts

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