MCPcopy
hub / github.com/github/awesome-copilot / _append_log

Function _append_log

skills/mini-context-graph/scripts/tools/wiki_store.py:110–116  ·  view source on GitHub ↗

Append a timestamped entry to log.md.

(operation: str, detail: str)

Source from the content-addressed store, hash-verified

108
109
110def _append_log(operation: str, detail: str) -> None:
111 """Append a timestamped entry to log.md."""
112 _ensure_dirs()
113 timestamp = datetime.now(timezone.utc).strftime("%Y-%m-%d")
114 entry = f"\n## [{timestamp}] {operation} | {detail}\n"
115 with open(_LOG_FILE, "a") as f:
116 f.write(entry)
117
118
119# ---------------------------------------------------------------------------

Callers 1

write_pageFunction · 0.85

Calls 2

_ensure_dirsFunction · 0.85
openFunction · 0.50

Tested by

no test coverage detected