Documentation
¶
Overview ¶
Package logger defines a minimal, leveled logging interface used throughout the MCP reference implementation.
The interface mirrors the traditional syslog severity levels (Debug, Info, Notice, Warning, Error, Critical, Alert, Emergency) and allows callers to obtain sub-loggers by name. Implementers can route the events to their logging backend of choice while remaining decoupled from the core protocol code.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logger ¶
type Logger interface {
Debug(ctx context.Context, data interface{}) error
Info(ctx context.Context, data interface{}) error
Notice(ctx context.Context, data interface{}) error
Warning(ctx context.Context, data interface{}) error
Error(ctx context.Context, data interface{}) error
Critical(ctx context.Context, data interface{}) error
Alert(ctx context.Context, data interface{}) error
Emergency(ctx context.Context, data interface{}) error
Logger(name string) Logger
}
Click to show internal directories.
Click to hide internal directories.