Skip to content

Add structured JSONL logging with experiment step journal - #8

Draft
lamewarden wants to merge 1 commit into
mainfrom
cursor/logger-2299
Draft

lamewarden wants to merge 1 commit into
mainfrom
cursor/logger-2299

Conversation

@lamewarden

Copy link
Copy Markdown
Owner

Summary

Structured JSONL logging for RaPiD-boxes: errors, experiment step journal, and system events.

Canonical branch: cursor/logger-2299

What's included

  • rapidboxes.logging package with errors.jsonl, experiment.jsonl, system.jsonl
  • Experiment runner step journal (started / done / stopped / crashed)
  • Hardware, settings, and API error instrumentation
  • RAPIDBOXES_LOG_ROOT config (default ~/rapidboxes/logs)
  • 27 tests passing

Log paths on Pi

~/rapidboxes/logs/errors.jsonl
~/rapidboxes/logs/experiment.jsonl
~/rapidboxes/logs/system.jsonl
Open in Web Open in Cursor 

Introduce rapidboxes.logging package with three JSONL streams (errors,
experiment journal, system events), correlation context (run_id,
experiment_id, phase), and stdlib logging bridge for ERROR+ records.

Instrument ExperimentRunner with step-by-step journal entries, add
explicit log_error calls in hardware/settings paths, HTTP error
middleware, and RAPIDBOXES_LOG_ROOT config for Pi deployment.

Co-authored-by: Ivan Kashkan <lamewarden@users.noreply.github.com>
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.

2 participants