(self, path: Path, line: str)
| 271 | self._append_line(account_dir / f"{date_part}.jsonl", payload) |
| 272 | |
| 273 | def _append_line(self, path: Path, line: str) -> None: |
| 274 | path.parent.mkdir(parents=True, exist_ok=True) |
| 275 | with path.open("a", encoding="utf-8", newline="\n") as handle: |
| 276 | handle.write(line + "\n") |
| 277 | |
| 278 | def _make_run_id(self, *, prefix: str = "run") -> str: |
| 279 | stamp = datetime.now().strftime("%Y%m%d-%H%M%S") |