MCPcopy
hub / github.com/codedogQBY/ReadAny / getLogFilePath

Function getLogFilePath

packages/core/src/feedback/feedback-service.ts:68–73  ·  view source on GitHub ↗
(dateStr?: string)

Source from the content-addressed store, hash-verified

66}
67
68async function getLogFilePath(dateStr?: string): Promise<string> {
69 const platform = getPlatformService();
70 const dir = await ensureLogDir();
71 const filename = `app-${dateStr || getTodayDateStr()}.log`;
72 return platform.joinPath(dir, filename);
73}
74
75/** Flush pending log lines to file */
76async function flushLogs(): Promise<void> {

Callers 3

flushLogsFunction · 0.85
collectLogsFunction · 0.85
clearLogsFunction · 0.85

Calls 4

getPlatformServiceFunction · 0.90
ensureLogDirFunction · 0.85
getTodayDateStrFunction · 0.85
joinPathMethod · 0.65

Tested by

no test coverage detected