MCPcopy
hub / github.com/7836246/cursor2api / getLogFilePath

Function getLogFilePath

src/logger.ts:180–185  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

178}
179
180function getLogFilePath(): string | null {
181 const dir = getLogDir();
182 if (!dir) return null;
183 const date = new Date().toISOString().slice(0, 10); // YYYY-MM-DD
184 return join(dir, `cursor2api-${date}.jsonl`);
185}
186
187function ensureLogDir(): void {
188 const dir = getLogDir();

Callers 1

persistRequestFunction · 0.85

Calls 1

getLogDirFunction · 0.85

Tested by

no test coverage detected