MCPcopy Index your code
hub / github.com/BlockRunAI/ClawRouter / getLogFiles

Function getLogFiles

src/stats.ts:77–87  ·  view source on GitHub ↗

* Get list of available log files sorted by date (newest first).

()

Source from the content-addressed store, hash-verified

75 * Get list of available log files sorted by date (newest first).
76 */
77async function getLogFiles(): Promise<string[]> {
78 try {
79 const files = await readdir(LOG_DIR);
80 return files
81 .filter((f) => f.startsWith("usage-") && f.endsWith(".jsonl"))
82 .sort()
83 .reverse();
84 } catch {
85 return [];
86 }
87}
88
89/**
90 * Aggregate stats for a single day.

Callers 2

getStatsFunction · 0.85
formatRecentLogsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected