MCPcopy
hub / github.com/dotnet/vscode-csharp / log

Method log

src/razor/src/razorLogger.ts:82–100  ·  view source on GitHub ↗
(message: string, level: MessageType)

Source from the content-addressed store, hash-verified

80 }
81
82 public log(message: string, level: MessageType) {
83 switch (level) {
84 case MessageType.Error:
85 this.logError(message, new Error(message));
86 break;
87 case MessageType.Warning:
88 this.logWarning(message);
89 break;
90 case MessageType.Info:
91 this.logInfo(message);
92 break;
93 case MessageType.Debug:
94 this.logDebug(message);
95 break;
96 case MessageType.Log:
97 default:
98 this.logTrace(message);
99 }
100 }
101
102 public dispose() {
103 this.outputChannel.dispose();

Callers 15

setupFunction · 0.80
installExtensionsFunction · 0.80
installExtensionFunction · 0.80
runIntegrationTestsFunction · 0.80
createTestZipAsyncMethod · 0.80
activateCSharpExtensionFunction · 0.80
restartOmniSharpServerFunction · 0.80
activateCSharpExtensionFunction · 0.80
getCodeLensesAsyncFunction · 0.80

Calls 5

logErrorMethod · 0.95
logWarningMethod · 0.95
logInfoMethod · 0.95
logDebugMethod · 0.95
logTraceMethod · 0.95

Tested by

no test coverage detected