Skip to content

feat: pluggable logger module with JSONL file sink#30

Merged
cptrodgers merged 2 commits intomainfrom
hn/add-logger-and-file-log
Mar 30, 2026
Merged

feat: pluggable logger module with JSONL file sink#30
cptrodgers merged 2 commits intomainfrom
hn/add-logger-and-file-log

Conversation

@cptrodgers
Copy link
Copy Markdown
Owner

Summary

  • Add src/logger/ module with LogSink trait, LogRouter (async mpsc fan-out), TuiSink, and FileSink (JSONL + rotation + auto-cleanup)
  • Replace all log_request() calls with state.logger.emit() — non-blocking, never crashes the server
  • Enable via [logging] file = true in mcpr.toml

@cptrodgers cptrodgers merged commit 567a1cb into main Mar 30, 2026
1 check passed
@cptrodgers cptrodgers deleted the hn/add-logger-and-file-log branch March 30, 2026 14:35
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