2 instantiations of KeyValueLogMessage
Microsoft.CodeAnalysis.Workspaces (2)
Log\KeyValueLogMessage.cs (2)
20private static readonly ObjectPool<KeyValueLogMessage> s_pool = new(() => new KeyValueLogMessage(), 20); 22public static readonly KeyValueLogMessage NoProperty = new();
40 references to KeyValueLogMessage
Microsoft.CodeAnalysis.Features (2)
CodeRefactorings\CodeRefactoringService.cs (1)
177var logMessage = KeyValueLogMessage.Create(m =>
MetadataAsSource\TelemetryMessage.cs (1)
24var logMessage = KeyValueLogMessage.Create(LogType.UserAction, SetLogProperties);
Microsoft.CodeAnalysis.LanguageServer.Protocol (1)
Features\CodeFixes\CodeFixService.cs (1)
527var logMessage = KeyValueLogMessage.Create(m =>
Microsoft.CodeAnalysis.Remote.ServiceHub (2)
Services\DiagnosticAnalyzer\PerformanceTrackerService.cs (1)
81var logMessage = KeyValueLogMessage.Create(m =>
src\VisualStudio\Core\Def\Telemetry\Shared\TimedTelemetryLogBlock.cs (1)
38var logMessage = KeyValueLogMessage.Create(m =>
Microsoft.CodeAnalysis.Workspaces (33)
CodeFixesAndRefactorings\FixAllLogger.cs (7)
62Logger.Log(functionId, KeyValueLogMessage.Create(m => 118Logger.Log(functionId, KeyValueLogMessage.Create(m => 144Logger.Log(functionId, KeyValueLogMessage.Create(m => 158Logger.Log(FunctionId.CodeFixes_FixAllOccurrencesComputation_Document_Diagnostics, KeyValueLogMessage.Create(m => 168Logger.Log(FunctionId.CodeFixes_FixAllOccurrencesComputation_Project_Diagnostics, KeyValueLogMessage.Create(m => 178Logger.Log(functionId, KeyValueLogMessage.Create(m => 186=> KeyValueLogMessage.Create(LogType.UserAction, m => m[CorrelationId] = correlationId);
Log\KeyValueLogMessage.cs (8)
20private static readonly ObjectPool<KeyValueLogMessage> s_pool = new(() => new KeyValueLogMessage(), 20); 22public static readonly KeyValueLogMessage NoProperty = new(); 25/// Creates a <see cref="KeyValueLogMessage"/> with default <see cref="LogLevel.Information"/>, since 28public static KeyValueLogMessage Create(Action<Dictionary<string, object?>> propertySetter, LogLevel logLevel = LogLevel.Information) 30var logMessage = s_pool.Allocate(); 36public static KeyValueLogMessage Create(LogType kind, LogLevel logLevel = LogLevel.Information) 39public static KeyValueLogMessage Create(LogType kind, Action<Dictionary<string, object?>>? propertySetter, LogLevel logLevel = LogLevel.Information) 41var logMessage = s_pool.Allocate();
SemanticModelReuse\AbstractSemanticModelReuseLanguageService.cs (1)
35Logger.Log(FunctionId.SemanticModelReuseLanguageService_TryGetSpeculativeSemanticModelAsync_Equivalent, KeyValueLogMessage.Create(m =>
SourceGeneratorTelemetry\SourceGeneratorTelemetryCollectorWorkspaceService.cs (1)
69Logger.Log(functionId, KeyValueLogMessage.Create(map =>
Storage\SQLite\v2\SQLitePersistentStorage.cs (2)
175public static KeyValueLogMessage GetLogMessage(SqlException exception) 176=> KeyValueLogMessage.Create(d =>
Storage\StorageDatabaseLogger.cs (1)
40Logger.Log(FunctionId.StorageDatabase_Exceptions, KeyValueLogMessage.Create(m =>
Telemetry\ITelemetryBlockLog.cs (1)
18public IDisposable? LogBlockTime(KeyValueLogMessage logMessage, int minThresholdMs = -1);
Telemetry\ITelemetryLog.cs (1)
15public void Log(KeyValueLogMessage logMessage);
Telemetry\TelemetryLogging.cs (8)
37public static void Log(FunctionId functionId, KeyValueLogMessage logMessage) 51public static IDisposable? LogBlockTime(FunctionId functionId, KeyValueLogMessage logMessage, int minThresholdMs = -1) 65var logMessage = KeyValueLogMessage.Create(m => 75public static void LogAggregatedHistogram(FunctionId functionId, KeyValueLogMessage logMessage) 94var logMessage = KeyValueLogMessage.Create(m => 102public static void LogAggregatedCounter(FunctionId functionId, KeyValueLogMessage logMessage)
Workspace\ProjectSystem\ProjectSystemProject.cs (1)
317Logger.Log(FunctionId.Workspace_Project_CompilationThrownAway, KeyValueLogMessage.Create(m =>
Workspace\Solution\FileTextLoader.cs (1)
245Logger.Log(FunctionId.FileTextLoader_FileLengthThresholdExceeded, KeyValueLogMessage.Create(m =>
Workspace\Solution\SolutionCompilationState.SkeletonReferenceCache.cs (1)
279Logger.Log(FunctionId.MetadataOnlyImage_EmitFailure, KeyValueLogMessage.Create(m =>
Microsoft.VisualStudio.LanguageServices (1)
Telemetry\Shared\TimedTelemetryLogBlock.cs (1)
38var logMessage = KeyValueLogMessage.Create(m =>
Microsoft.VisualStudio.LanguageServices.DevKit (1)
src\VisualStudio\Core\Def\Telemetry\Shared\TimedTelemetryLogBlock.cs (1)
38var logMessage = KeyValueLogMessage.Create(m =>