MCPcopy Create free account
hub / github.com/MiniMax-AI/OpenRoom / generateLogFileName

Function generateLogFileName

apps/webuiapps/src/lib/logPlugin.ts:24–28  ·  view source on GitHub ↗
(now: Date = new Date())

Source from the content-addressed store, hash-verified

22 * Format: debug-YYYY-MM-DD_HH-mm-ss.log
23 */
24export function generateLogFileName(now: Date = new Date()): string {
25 const date = `${now.getFullYear()}-${pad(now.getMonth() + 1)}-${pad(now.getDate())}`;
26 const time = `${pad(now.getHours())}-${pad(now.getMinutes())}-${pad(now.getSeconds())}`;
27 return `debug-${date}_${time}.log`;
28}
29
30/**
31 * Format a single log line using local time (consistent with file name).

Callers 2

configureServerFunction · 0.90
logPlugin.test.tsFile · 0.90

Calls 1

padFunction · 0.85

Tested by

no test coverage detected