(message: string, context?: Record<string, unknown>)
| 192 | */ |
| 193 | export const defaultLogger: Logger = { |
| 194 | debug(message: string, context?: Record<string, unknown>): void { |
| 195 | if (process.env.CODEGRAPH_DEBUG) { |
| 196 | console.debug(`[CodeGraph] ${message}`, context ?? ''); |
| 197 | } |
| 198 | }, |
| 199 | warn(message: string, context?: Record<string, unknown>): void { |
| 200 | console.warn(`[CodeGraph] ${message}`, context ?? ''); |
| 201 | }, |