logging

package
v0.22.2 Latest Latest
Warning

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

Go to latest
Published: May 22, 2026 License: MIT Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HTTPConfig added in v0.21.0

type HTTPConfig interface {
	Logger() func(http.Handler) http.Handler
}

HTTPConfig is implemented by anything that produces an HTTP middleware chain emitting structured access logs.

type Log added in v0.20.0

type Log interface {
	Info(ctx context.Context, msg string, fields ...any)
	Warn(ctx context.Context, msg string, fields ...any)
	Err(ctx context.Context, msg string, fields ...any)
}

type RPCConfig added in v0.21.0

type RPCConfig interface {
	UnaryInterceptor() grpc.UnaryServerInterceptor
	StreamInterceptor() grpc.StreamServerInterceptor
	PanicUnaryInterceptor() grpc.UnaryServerInterceptor
	PanicStreamInterceptor() grpc.StreamServerInterceptor
}

RPCConfig is implemented by anything that produces gRPC interceptors — both for emitting structured access logs (Unary/Stream Interceptor) and for recovering from handler panics (PanicUnary/PanicStream Interceptor).

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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