MCPcopy Create free account
hub / github.com/continuedev/continue / logger

Function logger

binary/src/logging.ts:5–10  ·  view source on GitHub ↗
(message: any, ...optionalParams: any[])

Source from the content-addressed store, hash-verified

3
4export function setupCoreLogging() {
5 const logger = (message: any, ...optionalParams: any[]) => {
6 const logFilePath = getCoreLogsPath();
7 const timestamp = new Date().toISOString().split(".")[0];
8 const logMessage = `[${timestamp}] ${message} ${optionalParams.join(" ")}\n`;
9 fs.appendFileSync(logFilePath, logMessage);
10 };
11 console.log = logger;
12 console.error = logger;
13 console.warn = logger;

Callers

nothing calls this directly

Calls 1

getCoreLogsPathFunction · 0.90

Tested by

no test coverage detected