MCPcopy Create free account
hub / github.com/deepnote/vscode-deepnote / logMessage

Method logMessage

src/test/web/customReporter.ts:186–201  ·  view source on GitHub ↗
(category: 'error' | 'warn' | undefined, message: string, ...data: Arguments)

Source from the content-addressed store, hash-verified

184 //
185 }
186 logMessage(category: 'error' | 'warn' | undefined, message: string, ...data: Arguments) {
187 if (!this.captureLogs) {
188 return;
189 }
190 const output = ([message] as any[])
191 .concat(data)
192 .map((arg) => {
193 try {
194 return format(arg);
195 } catch {
196 return `${arg}`;
197 }
198 })
199 .join(' ');
200 this._outputs.push({ category, output, time: Date.now() });
201 }
202}
203
204const consoleHijacker = new ConsoleHijacker();

Callers 6

errorMethod · 0.95
warnMethod · 0.95
infoMethod · 0.95
traceEverythingMethod · 0.95
debugMethod · 0.95
traceMethod · 0.95

Calls 4

joinMethod · 0.80
mapMethod · 0.80
pushMethod · 0.65
formatFunction · 0.50

Tested by

no test coverage detected