110 references to LogLevel
Microsoft.CodeAnalysis.CSharp.Features (5)
Copilot\CSharpCopilotCodeFixProvider.DismissChangesCodeAction.cs (1)
54LogLevel.Information));
Copilot\CSharpImplementNotImplementedExceptionFixProvider.cs (3)
75Logger.Log(FunctionId.Copilot_Implement_NotImplementedException_Fix_Registered, logLevel: LogLevel.Information); 130Logger.Log(FunctionId.Copilot_Implement_NotImplementedException_Completed, logLevel: LogLevel.Information); 135Logger.Log(FunctionId.Copilot_Implement_NotImplementedException_Failed, errorMessage, logLevel: LogLevel.Error);
QuickInfo\CSharpSemanticQuickInfoProvider.cs (1)
263Logger.Log(FunctionId.Copilot_On_The_Fly_Docs_Content_Excluded, logLevel: LogLevel.Information);
Microsoft.CodeAnalysis.EditorFeatures (10)
DocumentationComments\DocumentationCommentSuggestion.cs (5)
41Logger.Log(FunctionId.Copilot_Generate_Documentation_Accepted, logLevel: LogLevel.Information); 54Logger.Log(FunctionId.Copilot_Generate_Documentation_Dismissed, logLevel: LogLevel.Information); 61Logger.Log(FunctionId.Copilot_Generate_Documentation_Diverged, logLevel: LogLevel.Information); 127Logger.Log(FunctionId.Copilot_Generate_Documentation_Displayed, logLevel: LogLevel.Information); 131Logger.Log(FunctionId.Copilot_Generate_Documentation_Canceled, logLevel: LogLevel.Information);
QuickInfo\OnTheFlyDocsView.xaml.cs (4)
233}, copilotRequestTime, LogLevel.Information)); 248}, (copilotRequestTime, responseString), LogLevel.Information)); 256}, stopwatch, LogLevel.Information)); 303}, _onTheFlyDocsInfo, LogLevel.Information));
QuickInfo\OnTheFlyDocsViewFactory.cs (1)
61Logger.Log(FunctionId.Copilot_On_The_Fly_Docs_Showed_Link, logLevel: LogLevel.Information);
Microsoft.CodeAnalysis.Features (3)
Completion\Providers\Snippets\AbstractSnippetCompletionProvider.cs (1)
32Logger.Log(FunctionId.Completion_SemanticSnippets, $"Name: {snippetIdentifier}", LogLevel.Information);
ValueTracking\ValueTrackingService.cs (2)
32using var logger = Logger.LogBlock(FunctionId.ValueTracking_TrackValueSource, cancellationToken, LogLevel.Information); 62using var logger = Logger.LogBlock(FunctionId.ValueTracking_TrackValueSource, cancellationToken, LogLevel.Information);
Microsoft.CodeAnalysis.LanguageServer (5)
Logging\RoslynLogger.cs (2)
177logMessage.LogLevel < LogLevel.Information; 237>= LogLevel.Information => LogType.UserAction,
Program.cs (1)
161RoslynLog.Logger.Log(RoslynLog.FunctionId.VSCode_LanguageServer_Started, logLevel: RoslynLog.LogLevel.Information);
Telemetry\VSCodeRequestTelemetryLogger.cs (2)
26Logger.Log(FunctionId.VSCode_Projects_Load_Completed, logLevel: LogLevel.Information); 31Logger.Log(FunctionId.VSCode_Project_Load_Started, logLevel: LogLevel.Information);
Microsoft.CodeAnalysis.Remote.ServiceHub (3)
Services\ProcessTelemetry\RemoteProcessTelemetryService.PerformanceReporter.cs (1)
70}, LogLevel.Debug));
src\VisualStudio\Core\Def\Telemetry\Shared\TelemetryLogger.cs (2)
167=> logMessage.LogLevel < LogLevel.Information; 174>= LogLevel.Information => LogType.UserAction,
Microsoft.CodeAnalysis.Remote.ServiceHub.UnitTests (3)
TelemetryLoggerTests.cs (3)
30internal void IgnoredSeverity(LogLevel level) 35Assert.Equal((level < LogLevel.Information) ? 0 : 1, logger.PostedEvents.Count); 67logger.LogBlockStart(FunctionId.Debugging_EncSession_EditSession_EmitDeltaErrorId, KeyValueLogMessage.Create(p => p.Add("test", "start"), logLevel: LogLevel.Information), blockId: 1, CancellationToken.None);
Microsoft.CodeAnalysis.Workspaces (70)
CodeActions\Operations\ApplyChangesOperation.cs (8)
62logLevel: LogLevel.Information); 86Logger.Log(FunctionId.ApplyChangesOperation_WorkspaceVersionMismatch_ApplicationFailed_IncompatibleSolutionChange, logLevel: LogLevel.Information); 110Logger.Log(FunctionId.ApplyChangesOperation_WorkspaceVersionMismatch_ApplicationFailed_IncompatibleProjectChange, logLevel: LogLevel.Information); 121Logger.Log(FunctionId.ApplyChangesOperation_WorkspaceVersionMismatch_ApplicationFailed_NoChangedDocument, logLevel: LogLevel.Information); 134Logger.Log(FunctionId.ApplyChangesOperation_WorkspaceVersionMismatch_ApplicationFailed_NoTextChange, logLevel: LogLevel.Information); 142Logger.Log(FunctionId.ApplyChangesOperation_WorkspaceVersionMismatch_ApplicationFailed_DocumentRemoved, logLevel: LogLevel.Information); 151Logger.Log(FunctionId.ApplyChangesOperation_WorkspaceVersionMismatch_ApplicationFailed_TextChangeConflict, logLevel: LogLevel.Information); 159Logger.Log(FunctionId.ApplyChangesOperation_WorkspaceVersionMismatch_ApplicationSucceeded, logLevel: LogLevel.Information);
Log\KeyValueLogMessage.cs (21)
42private void Initialize(LogType kind, Action<Dictionary<string, object?>>? propertySetter, LogLevel logLevel) 49public static new SimpleKeyValueLogMessage Create(Action<Dictionary<string, object?>> propertySetter, LogLevel logLevel = LogLevel.Information) 57public static new SimpleKeyValueLogMessage Create(LogType kind, LogLevel logLevel = LogLevel.Information) 60public static new SimpleKeyValueLogMessage Create(LogType kind, Action<Dictionary<string, object?>>? propertySetter, LogLevel logLevel = LogLevel.Information) 94LogType kind, Action<Dictionary<string, object?>, TArgs> propertySetter, TArgs args, LogLevel logLevel) 103Action<Dictionary<string, object?>, TArgs> propertySetter, TArgs args, LogLevel logLevel) 112LogType kind, Action<Dictionary<string, object?>, TArgs> propertySetter, TArgs args, LogLevel logLevel) 124/// Creates a <see cref="KeyValueLogMessage"/> with default <see cref="LogLevel.Information"/>, since 127public static KeyValueLogMessage Create(Action<Dictionary<string, object?>> propertySetter, LogLevel logLevel = LogLevel.Information) 130public static KeyValueLogMessage Create(LogType kind, LogLevel logLevel = LogLevel.Information) 133public static KeyValueLogMessage Create(LogType kind, Action<Dictionary<string, object?>>? propertySetter, LogLevel logLevel = LogLevel.Information) 136public static KeyValueLogMessage Create<TArgs>(Action<Dictionary<string, object?>, TArgs> propertySetter, TArgs args, LogLevel logLevel = LogLevel.Information) 139public static KeyValueLogMessage Create<TArgs>(LogType kind, Action<Dictionary<string, object?>, TArgs> propertySetter, TArgs args, LogLevel logLevel = LogLevel.Information)
Log\WorkspaceErrorLogger.cs (1)
22=> Logger.Log(FunctionId.Extension_Exception, (source, exception) => source.GetType().Name + " : " + ToLogFormat(exception), source, exception, LogLevel.Error);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Log\Logger.cs (26)
59public static void Log(FunctionId functionId, string? message = null, LogLevel logLevel = LogLevel.Debug) 71public static void Log(FunctionId functionId, Func<string> messageGetter, LogLevel logLevel = LogLevel.Debug) 86public static void Log<TArg>(FunctionId functionId, Func<TArg, string> messageGetter, TArg arg, LogLevel logLevel = LogLevel.Debug) 100public static void Log<TArg0, TArg1>(FunctionId functionId, Func<TArg0, TArg1, string> messageGetter, TArg0 arg0, TArg1 arg1, LogLevel logLevel = LogLevel.Debug) 114public static void Log<TArg0, TArg1, TArg2>(FunctionId functionId, Func<TArg0, TArg1, TArg2, string> messageGetter, TArg0 arg0, TArg1 arg1, TArg2 arg2, LogLevel logLevel = LogLevel.Debug) 128public static void Log<TArg0, TArg1, TArg2, TArg3>(FunctionId functionId, Func<TArg0, TArg1, TArg2, TArg3, string> messageGetter, TArg0 arg0, TArg1 arg1, TArg2 arg2, TArg3 arg3, LogLevel logLevel = LogLevel.Debug) 159public static IDisposable LogBlock(FunctionId functionId, CancellationToken token, LogLevel logLevel = LogLevel.Trace) 165public static IDisposable LogBlock(FunctionId functionId, string? message, CancellationToken token, LogLevel logLevel = LogLevel.Trace) 174public static IDisposable LogBlock(FunctionId functionId, Func<string> messageGetter, CancellationToken token, LogLevel logLevel = LogLevel.Trace) 183public static IDisposable LogBlock<TArg>(FunctionId functionId, Func<TArg, string> messageGetter, TArg arg, CancellationToken token, LogLevel logLevel = LogLevel.Trace) 192public static IDisposable LogBlock<TArg0, TArg1>(FunctionId functionId, Func<TArg0, TArg1, string> messageGetter, TArg0 arg0, TArg1 arg1, CancellationToken token, LogLevel logLevel = LogLevel.Trace) 201public static IDisposable LogBlock<TArg0, TArg1, TArg2>(FunctionId functionId, Func<TArg0, TArg1, TArg2, string> messageGetter, TArg0 arg0, TArg1 arg1, TArg2 arg2, CancellationToken token, LogLevel logLevel = LogLevel.Trace) 210public static IDisposable LogBlock<TArg0, TArg1, TArg2, TArg3>(FunctionId functionId, Func<TArg0, TArg1, TArg2, TArg3, string> messageGetter, TArg0 arg0, TArg1 arg1, TArg2 arg2, TArg3 arg3, CancellationToken token, LogLevel logLevel = LogLevel.Trace)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Log\LogMessage.cs (14)
15public LogLevel LogLevel { get; protected set; } = LogLevel.Debug; 17public static LogMessage Create(string message, LogLevel logLevel) 20public static LogMessage Create(Func<string> messageGetter, LogLevel logLevel) 23public static LogMessage Create<TArg>(Func<TArg, string> messageGetter, TArg arg, LogLevel logLevel) 26public static LogMessage Create<TArg0, TArg1>(Func<TArg0, TArg1, string> messageGetter, TArg0 arg0, TArg1 arg1, LogLevel logLevel) 29public static LogMessage Create<TArg0, TArg1, TArg2>(Func<TArg0, TArg1, TArg2, string> messageGetter, TArg0 arg0, TArg1 arg1, TArg2 arg2, LogLevel logLevel) 32public static LogMessage Create<TArg0, TArg1, TArg2, TArg3>(Func<TArg0, TArg1, TArg2, TArg3, string> messageGetter, TArg0 arg0, TArg1 arg1, TArg2 arg2, TArg3 arg3, LogLevel logLevel) 65public static LogMessage Construct(string message, LogLevel logLevel) 97public static LogMessage Construct(Func<string> messageGetter, LogLevel logLevel) 128public static LogMessage Construct(Func<TArg0, string> messageGetter, TArg0 arg, LogLevel logLevel) 162internal static LogMessage Construct(Func<TArg0, TArg1, string> messageGetter, TArg0 arg0, TArg1 arg1, LogLevel logLevel) 199public static LogMessage Construct(Func<TArg0, TArg1, TArg2, string> messageGetter, TArg0 arg0, TArg1 arg1, TArg2 arg2, LogLevel logLevel) 239public static LogMessage Construct(Func<TArg0, TArg1, TArg2, TArg3, string> messageGetter, TArg0 arg0, TArg1 arg1, TArg2 arg2, TArg3 arg3, LogLevel logLevel)
Microsoft.VisualStudio.LanguageServices (9)
Diagnostics\VisualStudioDiagnosticAnalyzerProvider.WorkspaceEventListener.cs (1)
71static (m, analyzerCount) => m["AnalyzerCount"] = analyzerCount, analyzerCount, LogLevel.Debug));
DocumentOutline\DocumentOutlineView.xaml.cs (1)
218}, logLevel: LogLevel.Information);
LanguageService\AbstractLanguageService`2.VsCodeWindowManager.cs (1)
273Logger.Log(FunctionId.DocumentOutline_WindowOpen, logLevel: LogLevel.Information);
StackTraceExplorer\StackTraceExplorerCommandHandler.cs (1)
68Logger.Log(FunctionId.StackTraceToolWindow_ShowOnActivated, logLevel: LogLevel.Information);
Telemetry\Shared\TelemetryLogger.cs (2)
167=> logMessage.LogLevel < LogLevel.Information; 174>= LogLevel.Information => LogType.UserAction,
UnusedReferences\UnusedReferenceAnalysisService.cs (1)
28using var logger = Logger.LogBlock(FunctionId.UnusedReferences_GetUnusedReferences, message: null, cancellationToken, LogLevel.Information);
ValueTracking\ValueTrackingCommandHandler.cs (1)
82using var logger = Logger.LogBlock(FunctionId.ValueTracking_Command, CancellationToken.None, LogLevel.Information);
Workspace\VisualStudioWorkspaceStatusServiceFactory.cs (1)
121LogType.Trace, static (m, completionTask) => m["AlreadyFullyLoaded"] = completionTask.IsCompleted, completionTask, LogLevel.Debug));
Microsoft.VisualStudio.LanguageServices.DevKit (2)
src\VisualStudio\Core\Def\Telemetry\Shared\TelemetryLogger.cs (2)
167=> logMessage.LogLevel < LogLevel.Information; 174>= LogLevel.Information => LogType.UserAction,