MCPcopy Index your code
hub / github.com/callstack/agent-device / ensureLogPath

Function ensureLogPath

src/daemon/app-log.ts:171–175  ·  view source on GitHub ↗
(outPath: string)

Source from the content-addressed store, hash-verified

169}
170
171function ensureLogPath(outPath: string): void {
172 const dir = path.dirname(outPath);
173 if (!fs.existsSync(dir)) fs.mkdirSync(dir, { recursive: true });
174 rotateAppLogIfNeeded(outPath, getAppLogConfig());
175}
176
177export function getAppLogPathMetadata(outPath: string): {
178 exists: boolean;

Callers 2

startLocalAppLogFunction · 0.85
appendAppLogMarkerFunction · 0.85

Calls 2

rotateAppLogIfNeededFunction · 0.85
getAppLogConfigFunction · 0.85

Tested by

no test coverage detected