Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Field ¶
Field represents a key-value pair for structured logging.
type Logger ¶
type Logger interface {
Info(ctx context.Context, msg string, fields ...Field)
Debug(ctx context.Context, msg string, fields ...Field)
Error(ctx context.Context, msg string, fields ...Field)
}
Logger is an interface for logging that supports Info, Debug, and Error operations.
func NewFromSlog ¶
NewFromSlog wraps a slog.Logger to satisfy the Logger interface.
func NewFromZerolog ¶
NewFromZerolog wraps a zerolog.Logger to satisfy the Logger interface.
Click to show internal directories.
Click to hide internal directories.