logger

package
v0.0.0-...-dd34b7f Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2025 License: Apache-2.0 Imports: 2 Imported by: 12

Documentation

Index

Constants

View Source
const ContextKey = contextKey("logger")

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger interface {
	IsDebugEnabled() bool
	IsInfoEnabled() bool
	IsWarnEnabled() bool
	IsErrorEnabled() bool

	Info(msg string, args ...any)
	Debug(msg string, args ...any)
	Warn(msg string, args ...any)
	Error(msg string, args ...any)
	Infoc(ctx context.Context, msg string, args ...any)
	Debugc(ctx context.Context, msg string, args ...any)
	DebugJSONc(ctx context.Context, msg string, obj any)
	Warnc(ctx context.Context, msg string, args ...any)
	Errorc(ctx context.Context, msg string, args ...any)
	Infos(ctx context.Context, msg string, attrs ...slog.Attr)
	Debugs(ctx context.Context, msg string, attrs ...slog.Attr)
	Warns(ctx context.Context, msg string, attrs ...slog.Attr)
	Errors(ctx context.Context, msg string, attrs ...slog.Attr)
}

Jump to

Keyboard shortcuts

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