logger

package
v0.1.20 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger interface {
	Info(msg string, attrs ...any)
	Error(msg string, attrs ...any)
	Debug(msg string, attrs ...any)
}

Logger is a minimal structured logging abstraction used across the project. Implementations should keep behaviour lightweight so tests and libraries can substitute no-op or test loggers.

var NoopLogger Logger = &noopLogger{}

For convenience expose a singleton no-op value

func NewSlogLogger

func NewSlogLogger(l *slog.Logger) Logger

NewSlogLogger returns a Logger backed by the provided *slog.Logger.

Jump to

Keyboard shortcuts

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