109 references to Logger
Microsoft.CodeAnalysis.LanguageServer.Protocol (3)
Extensions\ProtocolConversions.cs (2)
155Logger.Log(FunctionId.LSPCompletion_MissingLSPCompletionInvokeKind); 168Logger.Log(FunctionId.LSPCompletion_MissingLSPCompletionTriggerKind);
Workspaces\LspWorkspaceRegistrationService.cs (1)
30Logger.Log(FunctionId.RegisterWorkspace, KeyValueLogMessage.Create(LogType.Trace, m =>
Microsoft.CodeAnalysis.Remote.ServiceHub (11)
Services\AssetSynchronization\RemoteAssetSynchronizationService.cs (2)
35using (RoslynLogger.LogBlock(FunctionId.RemoteHostService_SynchronizePrimaryWorkspaceAsync, Checksum.GetChecksumLogInfo, solutionChecksum, cancellationToken)) 59using (RoslynLogger.LogBlock(FunctionId.RemoteHostService_SynchronizeTextAsync, cancellationToken))
Services\DiagnosticAnalyzer\RemoteDiagnosticAnalyzerService.cs (2)
48using (RoslynLogger.LogBlock(FunctionId.CodeAnalysisService_CalculateDiagnosticsAsync, arguments.ProjectId.DebugName, cancellationToken)) 112using (RoslynLogger.LogBlock(FunctionId.CodeAnalysisService_ReportAnalyzerPerformance, cancellationToken))
Services\ProcessTelemetry\RemoteProcessTelemetryService.cs (5)
58RoslynLogger.Log(FunctionId.RemoteHost_Connect, KeyValueLogMessage.Create(m => 98RoslynLogger.SetLogger(AggregateLogger.AddOrReplace(creator(), RoslynLogger.GetLogger(), l => l is T)); 102RoslynLogger.SetLogger(AggregateLogger.Remove(RoslynLogger.GetLogger(), l => l is T));
Services\ProcessTelemetry\RemoteProcessTelemetryService.PerformanceReporter.cs (2)
51using (RoslynLogger.LogBlock(FunctionId.Diagnostics_GeneratePerformaceReport, cancellationToken)) 62RoslynLogger.Log(FunctionId.Diagnostics_AnalyzerPerformanceInfo2, KeyValueLogMessage.Create(m =>
Microsoft.CodeAnalysis.Workspaces (95)
CaseCorrection\AbstractCaseCorrectionService.cs (3)
46using (Logger.LogBlock(FunctionId.CaseCorrection_CaseCorrect, cancellationToken)) 51using (Logger.LogBlock(FunctionId.CaseCorrection_AddReplacements, cancellationToken)) 56using (Logger.LogBlock(FunctionId.CaseCorrection_ReplaceTokens, cancellationToken))
CodeActions\Operations\ApplyChangesOperation.cs (8)
60Logger.Log( 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);
CodeCleanup\AbstractCodeCleanerService.cs (6)
31using (Logger.LogBlock(FunctionId.CodeCleanup_CleanupAsync, cancellationToken)) 75using (Logger.LogBlock(FunctionId.CodeCleanup_Cleanup, cancellationToken)) 462using (Logger.LogBlock(FunctionId.CodeCleanup_IterateAllCodeCleanupProviders, cancellationToken)) 494using (Logger.LogBlock(FunctionId.CodeCleanup_IterateOneCodeCleanup, GetCodeCleanerTypeName, codeCleaner, cancellationToken)) 544using (Logger.LogBlock(FunctionId.CodeCleanup_IterateAllCodeCleanupProviders, cancellationToken)) 571using (Logger.LogBlock(FunctionId.CodeCleanup_IterateOneCodeCleanup, GetCodeCleanerTypeName, codeCleaner, cancellationToken))
CodeFixes\FixAllOccurrences\FixAllContext.DiagnosticProvider.cs (2)
57using (Logger.LogBlock( 70using (Logger.LogBlock(
CodeFixesAndRefactorings\FixAllLogger.cs (6)
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 =>
FindSymbols\Declarations\DeclarationFinder.cs (2)
30using (Logger.LogBlock(FunctionId.SymbolFinder_Project_AddDeclarationsAsync, cancellationToken)) 80using (Logger.LogBlock(FunctionId.SymbolFinder_Assembly_AddDeclarationsAsync, cancellationToken))
FindSymbols\FindReferences\DependentTypeFinder_Remote.cs (1)
68using (Logger.LogBlock(functionId, cancellationToken))
FindSymbols\FindReferences\FindReferencesSearchEngine.cs (1)
324using (Logger.LogBlock(FunctionId.FindReference_ProcessDocumentAsync, cancellationToken))
FindSymbols\SymbolFinder_Declarations_CustomQueries.cs (2)
56using (Logger.LogBlock(FunctionId.SymbolFinder_Solution_Predicate_FindSourceDeclarationsAsync, cancellationToken)) 101using (Logger.LogBlock(FunctionId.SymbolFinder_Project_Predicate_FindSourceDeclarationsAsync, cancellationToken))
FindSymbols\SymbolFinder_Declarations_SourceDeclarations.cs (4)
29using (Logger.LogBlock(FunctionId.SymbolFinder_Solution_Name_FindSourceDeclarationsAsync, cancellationToken)) 49using (Logger.LogBlock(FunctionId.SymbolFinder_Project_Name_FindSourceDeclarationsAsync, cancellationToken)) 80using (Logger.LogBlock(FunctionId.SymbolFinder_Solution_Pattern_FindSourceDeclarationsAsync, cancellationToken)) 108using (Logger.LogBlock(FunctionId.SymbolFinder_Project_Pattern_FindSourceDeclarationsAsync, cancellationToken))
FindSymbols\SymbolFinder_FindLiteralReferences.cs (1)
22using (Logger.LogBlock(FunctionId.FindReference, cancellationToken))
FindSymbols\SymbolFinder_FindReferences_Current.cs (1)
29using (Logger.LogBlock(FunctionId.FindReference, cancellationToken))
FindSymbols\SymbolFinder_FindRenamableReferences.cs (1)
20using (Logger.LogBlock(FunctionId.FindReference_Rename, cancellationToken))
FindSymbols\SymbolTree\SymbolTreeInfo_Serialization.cs (3)
36using (Logger.LogBlock(FunctionId.SymbolTreeInfo_TryLoadOrCreate, cancellationToken)) 54using (Logger.LogBlock(FunctionId.SymbolTreeInfo_Create, cancellationToken)) 266Logger.Log(FunctionId.SymbolTreeInfo_ExceptionInCacheRead);
Log\WorkspaceErrorLogger.cs (1)
24=> Logger.Log(FunctionId.Extension_Exception, (source, exception) => source.GetType().Name + " : " + ToLogFormat(exception), source, exception, LogLevel.Error);
Rename\ConflictEngine\ConflictResolver.cs (1)
61using (Logger.LogBlock(FunctionId.Renamer_ResolveConflictsAsync, cancellationToken))
Rename\LightweightRenameLocations.cs (1)
81using (Logger.LogBlock(FunctionId.Renamer_FindRenameLocationsAsync, cancellationToken))
Rename\Renamer.cs (1)
158using (Logger.LogBlock(FunctionId.Renamer_RenameSymbolAsync, cancellationToken))
Rename\SymbolicRenameLocations.cs (1)
62using (Logger.LogBlock(FunctionId.Rename_AllRenameLocations, cancellationToken))
SemanticModelReuse\AbstractSemanticModelReuseLanguageService.cs (1)
35Logger.Log(FunctionId.SemanticModelReuseLanguageService_TryGetSpeculativeSemanticModelAsync_Equivalent, KeyValueLogMessage.Create(m =>
Serialization\SerializerService.cs (3)
54using (Logger.LogBlock(FunctionId.Serializer_CreateChecksum, s_logKind, kind, cancellationToken)) 88using (Logger.LogBlock(FunctionId.Serializer_Serialize, s_logKind, kind, cancellationToken)) 237using (Logger.LogBlock(FunctionId.Serializer_Deserialize, s_logKind, kind, cancellationToken))
SourceGeneratorTelemetry\SourceGeneratorTelemetryCollectorWorkspaceService.cs (1)
69Logger.Log(functionId, KeyValueLogMessage.Create(map =>
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Context\FormattingContext.InitialContextFinder.cs (1)
48using (Logger.LogBlock(FunctionId.Formatting_ContextInitialization, CancellationToken.None))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractAggregatedFormattingResult.cs (2)
69using (Logger.LogBlock(FunctionId.Formatting_AggregateCreateTextChanges, cancellationToken)) 101using (Logger.LogBlock(FunctionId.Formatting_AggregateCreateFormattedRoot, cancellationToken))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormatEngine.cs (6)
115using (Logger.LogBlock(FunctionId.Formatting_Format, FormatSummary, cancellationToken)) 224using (Logger.LogBlock(FunctionId.Formatting_CollectTokenOperation, cancellationToken)) 348using (Logger.LogBlock(FunctionId.Formatting_ApplyAlignOperation, cancellationToken)) 378using (Logger.LogBlock(FunctionId.Formatting_ApplyAnchorOperation, cancellationToken)) 433using (Logger.LogBlock(FunctionId.Formatting_ApplySpaceAndLine, cancellationToken)) 490using (Logger.LogBlock(FunctionId.Formatting_BuildContext, cancellationToken))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormattingResult.cs (2)
56using (Logger.LogBlock(FunctionId.Formatting_CreateTextChanges, cancellationToken)) 90using (Logger.LogBlock(FunctionId.Formatting_CreateFormattedRoot, cancellationToken))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\TokenStream.cs (1)
53using (Logger.LogBlock(FunctionId.Formatting_TokenStreamConstruction, CancellationToken.None))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\BKTree.Serialization.cs (1)
30Logger.Log(FunctionId.BKTree_ExceptionInCacheRead);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\NonReentrantLock.cs (1)
125using (Logger.LogBlock(FunctionId.Misc_NonReentrantLock_BlockingWait, cancellationToken))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Simplification\AbstractSimplificationService.cs (1)
60using (Logger.LogBlock(FunctionId.Simplifier_ReduceAsync, cancellationToken))
Storage\SQLite\v2\Interop\SqlConnection.cs (1)
247Logger.Log(FunctionId.SQLite_SqlException, SQLitePersistentStorage.GetLogMessage(ex));
Storage\SQLite\v2\SQLitePersistentStorage.cs (1)
171Logger.Log(FunctionId.SQLite_StorageDisabled, GetLogMessage(exception));
Storage\StorageDatabaseLogger.cs (1)
40Logger.Log(FunctionId.StorageDatabase_Exceptions, KeyValueLogMessage.Create(m =>
TemporaryStorage\TemporaryStorageService.cs (3)
110using (Logger.LogBlock(FunctionId.TemporaryStorageServiceFactory_WriteText, cancellationToken)) 151using (Logger.LogBlock(FunctionId.TemporaryStorageServiceFactory_WriteStream, CancellationToken.None)) 280using (Logger.LogBlock(FunctionId.TemporaryStorageServiceFactory_ReadText, cancellationToken))
TemporaryStorage\TemporaryStorageService.TemporaryStorageStreamHandle.cs (1)
23using (Logger.LogBlock(FunctionId.TemporaryStorageServiceFactory_ReadStream, CancellationToken.None))
Utilities\SpellChecker.cs (1)
59Logger.Log(FunctionId.SpellChecker_ExceptionInCacheRead);
Workspace\ProjectSystem\ProjectSystemProject.cs (1)
317Logger.Log(FunctionId.Workspace_Project_CompilationThrownAway, KeyValueLogMessage.Create(m =>
Workspace\Solution\Document.cs (1)
426using (Logger.LogBlock(FunctionId.Workspace_Document_GetTextChanges, this.Name, cancellationToken))
Workspace\Solution\DocumentState.cs (4)
138using (Logger.LogBlock(FunctionId.Workspace_Document_State_FullyParseSyntaxTree, s_fullParseLog, filePath, mode, cancellationToken)) 154using (Logger.LogBlock(FunctionId.Workspace_Document_State_FullyParseSyntaxTree, s_fullParseLog, filePath, mode, cancellationToken)) 200using (Logger.LogBlock(FunctionId.Workspace_Document_State_IncrementallyParseSyntaxTree, cancellationToken)) 222using (Logger.LogBlock(FunctionId.Workspace_Document_State_IncrementallyParseSyntaxTree, cancellationToken))
Workspace\Solution\FileTextLoader.cs (1)
245Logger.Log(FunctionId.FileTextLoader_FileLengthThresholdExceeded, KeyValueLogMessage.Create(m =>
Workspace\Solution\ProjectState_Checksum.cs (1)
45using (Logger.LogBlock(FunctionId.ProjectState_ComputeChecksumsAsync, FilePath, cancellationToken))
Workspace\Solution\SolutionCompilationState.cs (1)
1232using (Logger.LogBlock(FunctionId.Workspace_SkeletonAssembly_GetMetadataOnlyImage, cancellationToken))
Workspace\Solution\SolutionCompilationState.RegularCompilationTracker.cs (1)
244using (Logger.LogBlock(FunctionId.Workspace_Project_CompilationTracker_BuildCompilationAsync,
Workspace\Solution\SolutionCompilationState.SkeletonReferenceCache.cs (2)
243using (Logger.LogBlock(FunctionId.Workspace_SkeletonAssembly_EmitMetadataOnlyImage, cancellationToken)) 279Logger.Log(FunctionId.MetadataOnlyImage_EmitFailure, KeyValueLogMessage.Create(m =>
Workspace\Solution\SolutionCompilationState_Checksum.cs (1)
111using (Logger.LogBlock(FunctionId.SolutionCompilationState_ComputeChecksumsAsync, this.SolutionState.FilePath, cancellationToken))
Workspace\Solution\SolutionState_Checksum.cs (1)
111using (Logger.LogBlock(FunctionId.SolutionState_ComputeChecksumsAsync, this.FilePath, cancellationToken))
Workspace\Solution\TextDocumentState_Checksum.cs (1)
37using (Logger.LogBlock(FunctionId.DocumentState_ComputeChecksumsAsync, FilePath, cancellationToken))
Workspace\Solution\VersionSource\RecoverableTextAndVersion.cs (2)
175using (Logger.LogBlock(FunctionId.Workspace_Recoverable_RecoverTextAsync, cancellationToken)) 185using (Logger.LogBlock(FunctionId.Workspace_Recoverable_RecoverText, cancellationToken))
Workspace\Workspace.cs (3)
1488using (Logger.LogBlock(FunctionId.Workspace_ApplyChanges, CancellationToken.None)) 1493Logger.Log(FunctionId.Workspace_ApplyChanges, "Apply Failed: workspaces do not match"); 1502Logger.Log(
Workspace\Workspace_Events.cs (1)
67using (Logger.LogBlock(FunctionId.Workspace_Events, (s, p, d, k) => $"{s.Id} - {p} - {d} {kind.ToString()}", newSolution, projectId, documentId, kind, CancellationToken.None))