Commit301021e3Recorded21 Mar 2026Repositorysigil-log
Add structured logging to MCP server and log-configure-from-args! helper
Message
sigil-log: Add log-configure-from-args! which parses --log and --log-level from command-line args for easy CLI setup.
sigil-mcp server: Add structured logging at trace/debug/warn/error levels using keyword args. Use log-trace (not log-trace*) to avoid syntax export issues in bundled apps. Use cond instead of if/begin in handle-tools-call for correct control flow.
Changed
src/sigil/log.sgl | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)Diff
src/sigil/log.sglmodified
@@ -404,4 +404,4 @@
404
(loop (cddr rest) (cadr rest) log-level)) 405
((and (equal? (car rest) "--log-level") (pair? (cdr rest))) 406
(loop (cddr rest) log-file (string->symbol (cadr rest))))−407
(else (loop (cdr rest) log-file log-level)))))))+407
(else (loop (cdr rest) log-file log-level))))))) 408
No newline at end of file