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

Method warn

src/shared/logging.ts:34–36  ·  view source on GitHub ↗
(errorOrMessage: any, category?: LogCategory)

Source from the content-addressed store, hash-verified

32 this.log(message, LogSeverity.Info, category);
33 }
34 public warn(errorOrMessage: any, category?: LogCategory): void {
35 this.log(errorString(errorOrMessage), LogSeverity.Warn, category);
36 }
37 public error(errorOrMessage: any, category?: LogCategory): void {
38 this.log(errorString(errorOrMessage), LogSeverity.Error, category);
39 }

Callers

nothing calls this directly

Calls 2

logMethod · 0.95
errorStringFunction · 0.90

Tested by

no test coverage detected