feat(server): migrate all logging to pino

- Add pino with pino-pretty for structured logging
- Create root logger in index.ts with child loggers per module
- Support log level via PASEO_LOG env var and config.json
- Support log format (pretty/json) via PASEO_LOG_FORMAT and config.json
- Replace all console.* in runtime code with appropriate log levels
- Scripts use process.stdout/stderr for output
- Error logging uses correct pattern: logger.error({ err }, msg)
This commit is contained in:
Mohamed Boudra
2026-01-15 17:16:01 +07:00
parent ef853914d5
commit b8f056060f
48 changed files with 1275 additions and 887 deletions
@@ -53,15 +53,6 @@ describe("Claude Agent SDK Commands POC", () => {
// Should be an array
expect(Array.isArray(commands)).toBe(true);
// Log what we found
console.log(`[Test] Found ${commands.length} commands:`);
commands.slice(0, 10).forEach((cmd) => {
console.log(` - /${cmd.name}: ${cmd.description} [${cmd.argumentHint}]`);
});
if (commands.length > 10) {
console.log(` ... and ${commands.length - 10} more`);
}
// Verify structure
if (commands.length > 0) {
const firstCommand = commands[0];