logging

package
v1.0.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

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

Logger provides structured logging for MCP tools

func NewLogger

func NewLogger(enabled bool) *Logger

NewLogger creates a new logger instance

func (*Logger) Debug

func (l *Logger) Debug(tool string, message string, args ...interface{})

Debug logs debug messages

func (*Logger) Error

func (l *Logger) Error(tool string, message string, err error, args ...interface{})

Error logs error messages

func (*Logger) Info

func (l *Logger) Info(tool string, message string, args ...interface{})

Info logs informational messages

func (*Logger) Warning

func (l *Logger) Warning(tool string, message string, args ...interface{})

Warning logs warning messages

Jump to

Keyboard shortcuts

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