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

Function getLogDir

src/logger.ts:169–173  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

167const DISK_SUMMARY_ANSWER_CHARS = 4000;
168
169function getLogDir(): string | null {
170 const cfg = getConfig();
171 if (!cfg.logging?.file_enabled) return null;
172 return cfg.logging.dir || './logs';
173}
174
175function getPersistMode(): 'compact' | 'full' | 'summary' {
176 const mode = getConfig().logging?.persist_mode;

Callers 4

getLogFilePathFunction · 0.85
ensureLogDirFunction · 0.85
loadLogsFromFilesFunction · 0.85
clearAllLogsFunction · 0.85

Calls 1

getConfigFunction · 0.90

Tested by

no test coverage detected