logger

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2025 License: Apache-2.0 Imports: 1 Imported by: 6

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
}

Jump to

Keyboard shortcuts

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