handler

package
v0.0.0-...-e4b44d9 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2024 License: MIT Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Console = writer.NewHandler(
		"console",
		level.Trace,
		logfmt.NewFormatter(&logfmt.FormatterOptions{WithColors: true}),
		os.Stdout,
	)

	Journal = journal.NewHandler("journal", level.Trace, nil)
)

Functions

This section is empty.

Types

type Handler

type Handler interface {
	Name() string
	Level() level.Level
	SetLevel(lvl level.Level)
	Formatter() formatter.Formatter
	Log(lvl level.Level, msg []byte) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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