MCPcopy Create free account
hub / github.com/Kilo-Org/cloud / ensureLogDirectory

Function ensureLogDirectory

apps/web/src/scripts/monitor-pg-activity.ts:15–20  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

13const ALERT_THRESHOLD = 100;
14
15async function ensureLogDirectory(): Promise<void> {
16 if (!existsSync(LOG_DIR)) {
17 await mkdir(LOG_DIR, { recursive: true });
18 console.log(`📁 Created log directory: ${LOG_DIR}`);
19 }
20}
21
22async function playAlertSound(): Promise<void> {
23 try {

Callers 1

runFunction · 0.85

Calls 1

logMethod · 0.65

Tested by

no test coverage detected