MCPcopy Create free account
hub / github.com/SethGammon/Citadel / log

Function log

scripts/local-daemon.js:55–59  ·  view source on GitHub ↗
(msg)

Source from the content-addressed store, hash-verified

53}
54
55function log(msg) {
56 const line = `[${new Date().toISOString()}] ${msg}`;
57 console.log(line);
58 try { fs.appendFileSync(LOG_PATH, line + '\n'); } catch { /* ignore */ }
59}
60
61function readDaemon() {
62 if (!fs.existsSync(DAEMON_PATH)) return null;

Callers 4

readDaemonFunction · 0.85
runSessionFunction · 0.85
mainFunction · 0.85
local-daemon.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected