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