MCPcopy Create free account
hub / github.com/VitoHowe/glm-coding / _append_line

Method _append_line

app/runtime_logging.py:273–276  ·  view source on GitHub ↗
(self, path: Path, line: str)

Source from the content-addressed store, hash-verified

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")

Callers 1

_write_entryMethod · 0.95

Calls 1

writeMethod · 0.80

Tested by

no test coverage detected