116 references to LogLevel
Microsoft.CodeAnalysis.CSharp.Features (4)
Copilot\CSharpImplementNotImplementedExceptionFixProvider.cs (3)
79
Logger.Log(FunctionId.Copilot_Implement_NotImplementedException_Fix_Registered, logLevel:
LogLevel
.Information);
134
Logger.Log(FunctionId.Copilot_Implement_NotImplementedException_Completed, logLevel:
LogLevel
.Information);
139
Logger.Log(FunctionId.Copilot_Implement_NotImplementedException_Failed, errorMessage, logLevel:
LogLevel
.Error);
QuickInfo\CSharpSemanticQuickInfoProvider.cs (1)
354
Logger.Log(FunctionId.Copilot_On_The_Fly_Docs_Content_Excluded, logLevel:
LogLevel
.Information);
Microsoft.CodeAnalysis.Features (3)
Completion\Providers\Snippets\AbstractSnippetCompletionProvider.cs (1)
32
Logger.Log(FunctionId.Completion_SemanticSnippets, $"Name: {snippetIdentifier}",
LogLevel
.Information);
ValueTracking\ValueTrackingService.cs (2)
32
using var logger = Logger.LogBlock(FunctionId.ValueTracking_TrackValueSource, cancellationToken,
LogLevel
.Information);
62
using var logger = Logger.LogBlock(FunctionId.ValueTracking_TrackValueSource, cancellationToken,
LogLevel
.Information);
Microsoft.CodeAnalysis.Workspaces (109)
CodeActions\Operations\ApplyChangesOperation.cs (8)
62
logLevel:
LogLevel
.Information);
86
Logger.Log(FunctionId.ApplyChangesOperation_WorkspaceVersionMismatch_ApplicationFailed_IncompatibleSolutionChange, logLevel:
LogLevel
.Information);
110
Logger.Log(FunctionId.ApplyChangesOperation_WorkspaceVersionMismatch_ApplicationFailed_IncompatibleProjectChange, logLevel:
LogLevel
.Information);
121
Logger.Log(FunctionId.ApplyChangesOperation_WorkspaceVersionMismatch_ApplicationFailed_NoChangedDocument, logLevel:
LogLevel
.Information);
134
Logger.Log(FunctionId.ApplyChangesOperation_WorkspaceVersionMismatch_ApplicationFailed_NoTextChange, logLevel:
LogLevel
.Information);
142
Logger.Log(FunctionId.ApplyChangesOperation_WorkspaceVersionMismatch_ApplicationFailed_DocumentRemoved, logLevel:
LogLevel
.Information);
151
Logger.Log(FunctionId.ApplyChangesOperation_WorkspaceVersionMismatch_ApplicationFailed_TextChangeConflict, logLevel:
LogLevel
.Information);
159
Logger.Log(FunctionId.ApplyChangesOperation_WorkspaceVersionMismatch_ApplicationSucceeded, logLevel:
LogLevel
.Information);
Log\KeyValueLogMessage.cs (21)
42
private void Initialize(LogType kind, Action<Dictionary<string, object?>>? propertySetter,
LogLevel
logLevel)
49
public static new SimpleKeyValueLogMessage Create(Action<Dictionary<string, object?>> propertySetter,
LogLevel
logLevel =
LogLevel
.Information)
57
public static new SimpleKeyValueLogMessage Create(LogType kind,
LogLevel
logLevel =
LogLevel
.Information)
60
public static new SimpleKeyValueLogMessage Create(LogType kind, Action<Dictionary<string, object?>>? propertySetter,
LogLevel
logLevel =
LogLevel
.Information)
94
LogType kind, Action<Dictionary<string, object?>, TArgs> propertySetter, TArgs args,
LogLevel
logLevel)
103
Action<Dictionary<string, object?>, TArgs> propertySetter, TArgs args,
LogLevel
logLevel)
112
LogType kind, Action<Dictionary<string, object?>, TArgs> propertySetter, TArgs args,
LogLevel
logLevel)
124
/// Creates a <see cref="KeyValueLogMessage"/> with default <see cref="
LogLevel
.Information"/>, since
127
public static KeyValueLogMessage Create(Action<Dictionary<string, object?>> propertySetter,
LogLevel
logLevel =
LogLevel
.Information)
130
public static KeyValueLogMessage Create(LogType kind,
LogLevel
logLevel =
LogLevel
.Information)
133
public static KeyValueLogMessage Create(LogType kind, Action<Dictionary<string, object?>>? propertySetter,
LogLevel
logLevel =
LogLevel
.Information)
136
public static KeyValueLogMessage Create<TArgs>(Action<Dictionary<string, object?>, TArgs> propertySetter, TArgs args,
LogLevel
logLevel =
LogLevel
.Information)
139
public 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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Log\Logger.cs (39)
15
/// <inheritdoc cref="RoslynTelemetry.Log(FunctionId, string,
LogLevel
)"/>
16
public static void Log(FunctionId functionId, string? message = null,
LogLevel
logLevel =
LogLevel
.Debug)
19
/// <inheritdoc cref="RoslynTelemetry.Log(FunctionId, Func{string},
LogLevel
)"/>
20
public static void Log(FunctionId functionId, Func<string> messageGetter,
LogLevel
logLevel =
LogLevel
.Debug)
23
/// <inheritdoc cref="RoslynTelemetry.Log{TArg}(FunctionId, Func{TArg, string}, TArg,
LogLevel
)"/>
24
public static void Log<TArg>(FunctionId functionId, Func<TArg, string> messageGetter, TArg arg,
LogLevel
logLevel =
LogLevel
.Debug)
27
/// <inheritdoc cref="RoslynTelemetry.Log{TArg0, TArg1}(FunctionId, Func{TArg0, TArg1, string}, TArg0, TArg1,
LogLevel
)"/>
28
public static void Log<TArg0, TArg1>(FunctionId functionId, Func<TArg0, TArg1, string> messageGetter, TArg0 arg0, TArg1 arg1,
LogLevel
logLevel =
LogLevel
.Debug)
31
/// <inheritdoc cref="RoslynTelemetry.Log{TArg0, TArg1, TArg2}(FunctionId, Func{TArg0, TArg1, TArg2, string}, TArg0, TArg1, TArg2,
LogLevel
)"/>
32
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)
35
/// <inheritdoc cref="RoslynTelemetry.Log{TArg0, TArg1, TArg2, TArg3}(FunctionId, Func{TArg0, TArg1, TArg2, TArg3, string}, TArg0, TArg1, TArg2, TArg3,
LogLevel
)"/>
36
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)
43
/// <inheritdoc cref="RoslynTelemetry.LogBlock(FunctionId, CancellationToken,
LogLevel
)"/>
44
public static IDisposable LogBlock(FunctionId functionId, CancellationToken token,
LogLevel
logLevel =
LogLevel
.Trace)
47
/// <inheritdoc cref="RoslynTelemetry.LogBlock(FunctionId, string, CancellationToken,
LogLevel
)"/>
48
public static IDisposable LogBlock(FunctionId functionId, string? message, CancellationToken token,
LogLevel
logLevel =
LogLevel
.Trace)
51
/// <inheritdoc cref="RoslynTelemetry.LogBlock(FunctionId, Func{string}, CancellationToken,
LogLevel
)"/>
52
public static IDisposable LogBlock(FunctionId functionId, Func<string> messageGetter, CancellationToken token,
LogLevel
logLevel =
LogLevel
.Trace)
55
/// <inheritdoc cref="RoslynTelemetry.LogBlock{TArg}(FunctionId, Func{TArg, string}, TArg, CancellationToken,
LogLevel
)"/>
56
public static IDisposable LogBlock<TArg>(FunctionId functionId, Func<TArg, string> messageGetter, TArg arg, CancellationToken token,
LogLevel
logLevel =
LogLevel
.Trace)
59
/// <inheritdoc cref="RoslynTelemetry.LogBlock{TArg0, TArg1}(FunctionId, Func{TArg0, TArg1, string}, TArg0, TArg1, CancellationToken,
LogLevel
)"/>
60
public static IDisposable LogBlock<TArg0, TArg1>(FunctionId functionId, Func<TArg0, TArg1, string> messageGetter, TArg0 arg0, TArg1 arg1, CancellationToken token,
LogLevel
logLevel =
LogLevel
.Trace)
63
/// <inheritdoc cref="RoslynTelemetry.LogBlock{TArg0, TArg1, TArg2}(FunctionId, Func{TArg0, TArg1, TArg2, string}, TArg0, TArg1, TArg2, CancellationToken,
LogLevel
)"/>
64
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)
67
/// <inheritdoc cref="RoslynTelemetry.LogBlock{TArg0, TArg1, TArg2, TArg3}(FunctionId, Func{TArg0, TArg1, TArg2, TArg3, string}, TArg0, TArg1, TArg2, TArg3, CancellationToken,
LogLevel
)"/>
68
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)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Log\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)
65
public static LogMessage Construct(string message,
LogLevel
logLevel)
97
public static LogMessage Construct(Func<string> messageGetter,
LogLevel
logLevel)
128
public static LogMessage Construct(Func<TArg0, string> messageGetter, TArg0 arg,
LogLevel
logLevel)
162
internal static LogMessage Construct(Func<TArg0, TArg1, string> messageGetter, TArg0 arg0, TArg1 arg1,
LogLevel
logLevel)
199
public static LogMessage Construct(Func<TArg0, TArg1, TArg2, string> messageGetter, TArg0 arg0, TArg1 arg1, TArg2 arg2,
LogLevel
logLevel)
239
public static LogMessage Construct(Func<TArg0, TArg1, TArg2, TArg3, string> messageGetter, TArg0 arg0, TArg1 arg1, TArg2 arg2, TArg3 arg3,
LogLevel
logLevel)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Log\RoslynTelemetry.cs (26)
159
public void Log(FunctionId functionId, string? message = null,
LogLevel
logLevel =
LogLevel
.Debug)
174
public void Log(FunctionId functionId, Func<string> messageGetter,
LogLevel
logLevel =
LogLevel
.Debug)
189
public void Log<TArg>(FunctionId functionId, Func<TArg, string> messageGetter, TArg arg,
LogLevel
logLevel =
LogLevel
.Debug)
203
public void Log<TArg0, TArg1>(FunctionId functionId, Func<TArg0, TArg1, string> messageGetter, TArg0 arg0, TArg1 arg1,
LogLevel
logLevel =
LogLevel
.Debug)
217
public void Log<TArg0, TArg1, TArg2>(FunctionId functionId, Func<TArg0, TArg1, TArg2, string> messageGetter, TArg0 arg0, TArg1 arg1, TArg2 arg2,
LogLevel
logLevel =
LogLevel
.Debug)
231
public 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)
265
public IDisposable LogBlock(FunctionId functionId, CancellationToken token,
LogLevel
logLevel =
LogLevel
.Trace)
271
public IDisposable LogBlock(FunctionId functionId, string? message, CancellationToken token,
LogLevel
logLevel =
LogLevel
.Trace)
280
public IDisposable LogBlock(FunctionId functionId, Func<string> messageGetter, CancellationToken token,
LogLevel
logLevel =
LogLevel
.Trace)
289
public IDisposable LogBlock<TArg>(FunctionId functionId, Func<TArg, string> messageGetter, TArg arg, CancellationToken token,
LogLevel
logLevel =
LogLevel
.Trace)
298
public IDisposable LogBlock<TArg0, TArg1>(FunctionId functionId, Func<TArg0, TArg1, string> messageGetter, TArg0 arg0, TArg1 arg1, CancellationToken token,
LogLevel
logLevel =
LogLevel
.Trace)
307
public 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)
316
public 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)