Skip to content

Conversation

peteski22
Copy link
Contributor

Summary

Adds structured logging support to the .NET SDK with automatic log level inference for mcpd's log integration. Implements a custom McpdLogFormatter that outputs logs in [LEVEL] message format, enabling mcpd to properly categorise plugin log messages by severity.

  • Add McpdLogFormatter for compatible log output ([INFO], [WARN], [ERROR])
  • Make Logger non-nullable in BasePlugin with NullLogger default
  • Add optional ILogger parameter to PluginServer.Serve() methods for custom logging
  • Update documentation with logging examples and format specification

@peteski22 peteski22 force-pushed the peteski22/update-logger branch from 1880b23 to 862ac8e Compare October 16, 2025 15:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant