Files
ollama37/docs
Shang Chieh Tseng 6c97e5cd61 Rewrite LogCollector with file-based markers for crash resilience
Replace in-memory array storage with persistent file-based logging:
- Logs written to /tmp/ollama37-session-{timestamp}.log
- Text markers: ===MARKER:START:{ID}:{TIMESTAMP}=== for test boundaries
- Extract test-specific logs via sed to /tmp/test-{ID}-logs.txt
- Write queue prevents race conditions between log data and markers
- Line buffering prevents marker injection mid-line
- Auto-cleanup of session files older than 24 hours

Benefits:
- Crash resilient: logs persist even if test process dies
- Bounded memory: no array growth, only file I/O
- Precise boundaries: text markers unaffected by buffering delays

API unchanged - all existing integrations (executor, cli, test cases) work without modification.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-17 20:02:14 +08:00
..