MCPcopy Create free account
hub / github.com/Dart-Code/Dart-Code / onLog

Method onLog

src/shared/logging.ts:15–20  ·  view source on GitHub ↗
(listener: (message: LogMessage) => void)

Source from the content-addressed store, hash-verified

13 this.emit("log", msg);
14 }
15 public onLog(listener: (message: LogMessage) => void): IAmDisposable {
16 this.on("log", listener);
17 return {
18 dispose: () => { this.removeListener("log", listener); },
19 };
20 }
21}
22
23export class EmittingLogger implements Logger, IAmDisposable {

Callers 4

EmittingLoggerClass · 0.80
logToConsoleFunction · 0.80
captureLogsFunction · 0.80
activateFunction · 0.80

Calls 1

onMethod · 0.80

Tested by

no test coverage detected