76 references to LogLevel
Microsoft.CodeAnalysis.EditorFeatures (1)
InlineRename\InlineRenameSession.cs (1)
888
Logger.Log(FunctionId.Rename_TryApplyRename_WorkspaceChanged, message: null,
LogLevel
.Information);
Microsoft.CodeAnalysis.Features (3)
Completion\Providers\Snippets\AbstractSnippetCompletionProvider.cs (1)
33
Logger.Log(FunctionId.Completion_SemanticSnippets, $"Name: {snippetIdentifier}",
LogLevel
.Information);
ValueTracking\ValueTrackingService.cs (2)
33
using var logger = Logger.LogBlock(FunctionId.ValueTracking_TrackValueSource, cancellationToken,
LogLevel
.Information);
63
using var logger = Logger.LogBlock(FunctionId.ValueTracking_TrackValueSource, cancellationToken,
LogLevel
.Information);
Microsoft.CodeAnalysis.LanguageServer.Protocol (3)
Features\Diagnostics\EngineV2\DiagnosticIncrementalAnalyzer.Executor.cs (3)
141
var
logLevel = logTelemetry ?
LogLevel
.Information :
LogLevel
.Trace;
Microsoft.CodeAnalysis.Remote.ServiceHub (2)
TelemetryLogger.cs (2)
158
=> logMessage.LogLevel <
LogLevel
.Information;
165
>=
LogLevel
.Information => LogType.UserAction,
Microsoft.CodeAnalysis.Remote.ServiceHub.UnitTests (3)
TelemetryLoggerTests.cs (3)
79
internal void IgnoredSeverity(
LogLevel
level)
84
Assert.Equal((level <
LogLevel
.Information) ? 0 : 1, logger.PostedEvents.Count);
116
logger.LogBlockStart(FunctionId.Debugging_EncSession_EditSession_EmitDeltaErrorId, KeyValueLogMessage.Create(p => p.Add("test", "start"), logLevel:
LogLevel
.Information), blockId: 1, CancellationToken.None);
Microsoft.CodeAnalysis.Workspaces (57)
CodeActions\Operations\ApplyChangesOperation.cs (8)
68
logLevel:
LogLevel
.Information);
92
Logger.Log(FunctionId.ApplyChangesOperation_WorkspaceVersionMismatch_ApplicationFailed_IncompatibleSolutionChange, logLevel:
LogLevel
.Information);
116
Logger.Log(FunctionId.ApplyChangesOperation_WorkspaceVersionMismatch_ApplicationFailed_IncompatibleProjectChange, logLevel:
LogLevel
.Information);
127
Logger.Log(FunctionId.ApplyChangesOperation_WorkspaceVersionMismatch_ApplicationFailed_NoChangedDocument, logLevel:
LogLevel
.Information);
140
Logger.Log(FunctionId.ApplyChangesOperation_WorkspaceVersionMismatch_ApplicationFailed_NoTextChange, logLevel:
LogLevel
.Information);
148
Logger.Log(FunctionId.ApplyChangesOperation_WorkspaceVersionMismatch_ApplicationFailed_DocumentRemoved, logLevel:
LogLevel
.Information);
157
Logger.Log(FunctionId.ApplyChangesOperation_WorkspaceVersionMismatch_ApplicationFailed_TextChangeConflict, logLevel:
LogLevel
.Information);
165
Logger.Log(FunctionId.ApplyChangesOperation_WorkspaceVersionMismatch_ApplicationSucceeded, logLevel:
LogLevel
.Information);
Log\KeyValueLogMessage.cs (8)
25
/// Creates a <see cref="KeyValueLogMessage"/> with default <see cref="
LogLevel
.Information"/>, since
28
public static KeyValueLogMessage Create(Action<Dictionary<string, object?>> propertySetter,
LogLevel
logLevel =
LogLevel
.Information)
36
public static KeyValueLogMessage Create(LogType kind,
LogLevel
logLevel =
LogLevel
.Information)
39
public static KeyValueLogMessage Create(LogType kind, Action<Dictionary<string, object?>>? propertySetter,
LogLevel
logLevel =
LogLevel
.Information)
57
private void Initialize(LogType kind, Action<Dictionary<string, object?>>? propertySetter,
LogLevel
logLevel)
Log\WorkspaceErrorLogger.cs (1)
24
=> Logger.Log(FunctionId.Extension_Exception, (source, exception) => source.GetType().Name + " : " + ToLogFormat(exception), source, exception,
LogLevel
.Error);
Logger.cs (26)
59
public static void Log(FunctionId functionId, string? message = null,
LogLevel
logLevel =
LogLevel
.Debug)
71
public static void Log(FunctionId functionId, Func<string> messageGetter,
LogLevel
logLevel =
LogLevel
.Debug)
86
public static void Log<TArg>(FunctionId functionId, Func<TArg, string> messageGetter, TArg arg,
LogLevel
logLevel =
LogLevel
.Debug)
100
public static void Log<TArg0, TArg1>(FunctionId functionId, Func<TArg0, TArg1, string> messageGetter, TArg0 arg0, TArg1 arg1,
LogLevel
logLevel =
LogLevel
.Debug)
114
public static void Log<TArg0, TArg1, TArg2>(FunctionId functionId, Func<TArg0, TArg1, TArg2, string> messageGetter, TArg0 arg0, TArg1 arg1, TArg2 arg2,
LogLevel
logLevel =
LogLevel
.Debug)
128
public 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)
159
public static IDisposable LogBlock(FunctionId functionId, CancellationToken token,
LogLevel
logLevel =
LogLevel
.Trace)
165
public static IDisposable LogBlock(FunctionId functionId, string? message, CancellationToken token,
LogLevel
logLevel =
LogLevel
.Trace)
174
public static IDisposable LogBlock(FunctionId functionId, Func<string> messageGetter, CancellationToken token,
LogLevel
logLevel =
LogLevel
.Trace)
183
public static IDisposable LogBlock<TArg>(FunctionId functionId, Func<TArg, string> messageGetter, TArg arg, CancellationToken token,
LogLevel
logLevel =
LogLevel
.Trace)
192
public static IDisposable LogBlock<TArg0, TArg1>(FunctionId functionId, Func<TArg0, TArg1, string> messageGetter, TArg0 arg0, TArg1 arg1, CancellationToken token,
LogLevel
logLevel =
LogLevel
.Trace)
201
public 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)
210
public 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)
LogMessage.cs (14)
15
public
LogLevel
LogLevel { get; protected set; } =
LogLevel
.Debug;
17
public static LogMessage Create(string message,
LogLevel
logLevel)
20
public static LogMessage Create(Func<string> messageGetter,
LogLevel
logLevel)
23
public static LogMessage Create<TArg>(Func<TArg, string> messageGetter, TArg arg,
LogLevel
logLevel)
26
public static LogMessage Create<TArg0, TArg1>(Func<TArg0, TArg1, string> messageGetter, TArg0 arg0, TArg1 arg1,
LogLevel
logLevel)
29
public static LogMessage Create<TArg0, TArg1, TArg2>(Func<TArg0, TArg1, TArg2, string> messageGetter, TArg0 arg0, TArg1 arg1, TArg2 arg2,
LogLevel
logLevel)
32
public static LogMessage Create<TArg0, TArg1, TArg2, TArg3>(Func<TArg0, TArg1, TArg2, TArg3, string> messageGetter, TArg0 arg0, TArg1 arg1, TArg2 arg2, TArg3 arg3,
LogLevel
logLevel)
63
public static LogMessage Construct(string message,
LogLevel
logLevel)
93
public static LogMessage Construct(Func<string> messageGetter,
LogLevel
logLevel)
124
public static LogMessage Construct(Func<TArg0, string> messageGetter, TArg0 arg,
LogLevel
logLevel)
158
internal static LogMessage Construct(Func<TArg0, TArg1, string> messageGetter, TArg0 arg0, TArg1 arg1,
LogLevel
logLevel)
195
public static LogMessage Construct(Func<TArg0, TArg1, TArg2, string> messageGetter, TArg0 arg0, TArg1 arg1, TArg2 arg2,
LogLevel
logLevel)
235
public static LogMessage Construct(Func<TArg0, TArg1, TArg2, TArg3, string> messageGetter, TArg0 arg0, TArg1 arg1, TArg2 arg2, TArg3 arg3,
LogLevel
logLevel)
Microsoft.VisualStudio.LanguageServices (7)
DocumentOutline\DocumentOutlineHelper.cs (1)
183
}, logLevel:
LogLevel
.Information);
LanguageService\AbstractLanguageService`2.VsCodeWindowManager.cs (1)
271
Logger.Log(FunctionId.DocumentOutline_WindowOpen, logLevel:
LogLevel
.Information);
StackTraceExplorer\StackTraceExplorerCommandHandler.cs (1)
68
Logger.Log(FunctionId.StackTraceToolWindow_ShowOnActivated, logLevel:
LogLevel
.Information);
Telemetry\TelemetryLogger.cs (2)
158
=> logMessage.LogLevel <
LogLevel
.Information;
165
>=
LogLevel
.Information => LogType.UserAction,
UnusedReferences\UnusedReferenceAnalysisService.cs (1)
28
using var logger = Logger.LogBlock(FunctionId.UnusedReferences_GetUnusedReferences, message: null, cancellationToken,
LogLevel
.Information);
ValueTracking\ValueTrackingCommandHandler.cs (1)
84
using var logger = Logger.LogBlock(FunctionId.ValueTracking_Command, CancellationToken.None,
LogLevel
.Information);