MCPcopy Index your code
hub / github.com/ChatLab/ChatLab / getInstance

Function getInstance

apps/desktop/main/ai/logger.ts:14–17  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

12
13let _instance: AiLogger | null = null
14function getInstance(): AiLogger {
15 if (!_instance) _instance = new AiLogger(getPathProvider().getLogsDir())
16 return _instance
17}
18
19export const aiLogger = {
20 debug: (category: string, message: string, data?: unknown) => getInstance().debug(category, message, data),

Callers 3

logger.tsFile · 0.85
setDebugModeFunction · 0.85
isDebugModeFunction · 0.85

Calls 2

getPathProviderFunction · 0.90
getLogsDirMethod · 0.65

Tested by

no test coverage detected