(dateStr?: string)
| 66 | } |
| 67 | |
| 68 | async 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 */ |
| 76 | async function flushLogs(): Promise<void> { |
no test coverage detected