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

Method log

src/debug/logging.ts:11–13  ·  view source on GitHub ↗
(message: string, severity: LogSeverity, category = this.category)

Source from the content-addressed store, hash-verified

9 constructor(private readonly debugClient: { sendEvent: (event: DebugProtocol.Event) => void }, private readonly category: LogCategory) { }
10
11 private log(message: string, severity: LogSeverity, category = this.category): void {
12 this.debugClient.sendEvent(new Event("dart.log", { message, severity, category } as LogMessage));
13 }
14
15 public info(message: string, category?: LogCategory): void {
16 this.log(message, LogSeverity.Info, category);

Callers 11

infoMethod · 0.95
warnMethod · 0.95
errorMethod · 0.95
launchRequestFunction · 0.45
initDebuggerFunction · 0.45
terminateFunction · 0.45
raceIgnoringErrorsFunction · 0.45
terminateRequestFunction · 0.45
disconnectRequestFunction · 0.45
customRequestFunction · 0.45

Calls 1

sendEventMethod · 0.80

Tested by

no test coverage detected