MCPcopy Create free account
hub / github.com/ChatLab/ChatLab / buildElectronLogger

Function buildElectronLogger

apps/desktop/main/worker/import/streamImport.ts:58–69  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

56}
57
58function buildElectronLogger(): ImportLogger {
59 return {
60 info: logInfo,
61 error: (message: string, err?: Error) => logError(message, err),
62 perf: (label: string, messageCount: number, batchSize?: number) => logPerf(label, messageCount, batchSize),
63 perfDetail: logPerfDetail,
64 summary: logSummary,
65 reset: resetPerfLog,
66 init: initPerfLog,
67 getCurrentLogFile,
68 }
69}
70
71function buildStreamImportDeps(requestId: string): StreamImportDeps {
72 return {

Callers 1

buildStreamImportDepsFunction · 0.85

Calls 2

logErrorFunction · 0.85
logPerfFunction · 0.85

Tested by

no test coverage detected