MCPcopy Create free account
hub / github.com/callstack/agent-device / defaultTracePath

Method defaultTracePath

src/daemon/session-store.ts:68–72  ·  view source on GitHub ↗
(session: SessionState)

Source from the content-addressed store, hash-verified

66 }
67
68 defaultTracePath(session: SessionState): string {
69 const safeName = safeSessionName(session.name);
70 const timestamp = new Date().toISOString().replace(/[:.]/g, '-');
71 return path.join(this.sessionsDir, `${safeName}-${timestamp}.trace.log`);
72 }
73
74 resolveSessionDir(sessionName: string): string {
75 return path.join(this.sessionsDir, safeSessionName(sessionName));

Callers 2

Calls 1

safeSessionNameFunction · 0.90

Tested by

no test coverage detected