loggers

package
v0.8.49 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2026 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Factory

type Factory interface {
	New() Logger
}

Factory creates a Logger with provided options. Concrete packages can expose their own Options type and translate here as needed.

type Logger

type Logger interface {
	Debug(args ...any)
	Info(args ...any)
	Warn(args ...any)
	Error(args ...any)

	Debugf(format string, args ...any)
	Infof(format string, args ...any)
	Warnf(format string, args ...any)
	Errorf(format string, args ...any)

	// With attaches structured key-value pairs and returns a derived logger.
	With(keysAndValues ...any) Logger
}

Logger defines a small logging interface to allow multiple implementations. It's intentionally minimal and aligned with typical needs.

Directories

Path Synopsis
Package vlog provides a structured logging interface backed by Go's standard log/slog package.
Package vlog provides a structured logging interface backed by Go's standard log/slog package.

Jump to

Keyboard shortcuts

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