Skip to content

Add structured JSON logging with Pino #2

Description

@burner-agent

Summary

Replace console.log/ad-hoc logging with pinojs/pino (17k+ stars) for structured JSON logging across the agent.

Motivation

Debugging autonomous RALPH loops is difficult without structured, queryable logs. Currently src/monitor.ts handles logging but a proper structured logger would make it easy to trace message lifecycles, Claude CLI invocations, self-edits, and errors with consistent format and log levels.

Proposal

  • Add pino as a dependency (super fast, minimal overhead)
  • Replace console.log calls with leveled pino loggers (info, warn, error, debug)
  • Log key events: RALPH step start/end, Claude CLI invocation timing/tokens, queue operations, webhook events
  • Output as JSON for easy parsing/querying, with pretty-print option for dev

References

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions