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:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user