MCPcopy Create free account
hub / github.com/Tencent/teamai-cli / getLogFilePath

Function getLogFilePath

src/utils/logger.ts:34–39  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

32let _writing = false;
33
34function getLogFilePath(): string {
35 if (!_logFilePath) {
36 _logFilePath = path.join(getUserHome(), '.teamai', 'debug.log');
37 }
38 return _logFilePath;
39}
40
41/**
42 * Ensure the parent directory of debug.log exists.

Callers 3

ensureLogDirFunction · 0.85
maybeRotateFunction · 0.85
writeToFileFunction · 0.85

Calls 1

getUserHomeFunction · 0.85

Tested by

no test coverage detected