log

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultLogLevel = slog.LevelInfo
)

Variables

This section is empty.

Functions

func New

func New(pkg string) *slog.Logger

func SetLogLevel

func SetLogLevel(level slog.Level)

Types

type ProxyHandler

type ProxyHandler struct {
	// contains filtered or unexported fields
}

func NewProxyHandler

func NewProxyHandler() *ProxyHandler

func (*ProxyHandler) Enabled

func (h *ProxyHandler) Enabled(ctx context.Context, level slog.Level) bool

func (*ProxyHandler) Handle

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

func (*ProxyHandler) WithAttrs

func (h *ProxyHandler) WithAttrs(attrs []slog.Attr) slog.Handler

func (*ProxyHandler) WithGroup

func (h *ProxyHandler) WithGroup(name string) slog.Handler

Jump to

Keyboard shortcuts

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