4 implementations of ILoggingService
Microsoft.Build (2)
BackEnd\Components\Logging\LoggingService.cs (1)
74internal partial class LoggingService : ILoggingService, INodePacketHandler
BackEnd\Components\Logging\LoggingServiceLogMethods.cs (1)
24internal partial class LoggingService : ILoggingService, INodePacketHandler, IBuildComponent
Microsoft.Build.Engine.UnitTests (2)
BackEnd\MockLoggingService.cs (1)
25internal class MockLoggingService : ILoggingService
Telemetry\Telemetry_Tests.cs (1)
527private sealed class EventRecordingLoggingService : MockLoggingService, ILoggingService
144 references to ILoggingService
Microsoft.Build (107)
BackEnd\BuildManager\BuildManager.cs (20)
381ILoggingService IBuildComponentHost.LoggingService => _componentFactories.GetComponent<ILoggingService>(BuildComponentType.LoggingService); 627var loggingService = InitializeLoggingService(); 690ILoggingService InitializeLoggingService() 692ILoggingService loggingService = CreateLoggingService( 846ILoggingService loggingService = ((IBuildComponentHost)this).LoggingService; 1126ILoggingService? loggingService = ((IBuildComponentHost)this).LoggingService; 1352ILoggingService? loggingService = ((IBuildComponentHost)this).LoggingService; 2752ILoggingService loggingService = ((IBuildComponentHost)this).GetComponent<ILoggingService>(BuildComponentType.LoggingService); 2765ILoggingService loggingService = ((IBuildComponentHost)this).GetComponent<ILoggingService>(BuildComponentType.LoggingService); 3037ILoggingService loggingService = ((IBuildComponentHost)this).GetComponent<ILoggingService>(BuildComponentType.LoggingService); 3169private ILoggingService CreateLoggingService( 3184ILoggingService loggingService = LoggingService.CreateLoggingService(loggerMode, 3348private static void LogDeferredMessages(ILoggingService loggingService, IEnumerable<DeferredBuildMessage>? deferredBuildMessages) 3400private void ShutdownLoggingService(ILoggingService? loggingService) 3531var loggingService = ((IBuildComponentHost)this).LoggingService; 3538var loggingService = ((IBuildComponentHost)this).LoggingService;
BackEnd\BuildManager\EnvironmentVariableValidator.cs (2)
24internal static void ValidateEnvironmentVariables(ILoggingService loggingService) 33private static void ValidateDotnetHostPath(ILoggingService loggingService)
BackEnd\Components\Communications\NodeProviderOutOfProcBase.cs (2)
125var loggingService = _componentHost.LoggingService; 1218public async Task WaitForExitAsync(ILoggingService loggingService)
BackEnd\Components\IBuildComponentHost.cs (2)
5using ILoggingService = Microsoft.Build.BackEnd.Logging.ILoggingService; 182ILoggingService LoggingService { get; }
BackEnd\Components\Logging\BuildLoggingContext.cs (1)
31protected BuildLoggingContext(ILoggingService loggingService, BuildEventContext buildEventContext, bool inProc) : base(loggingService, buildEventContext)
BackEnd\Components\Logging\EvaluationLoggingContext.cs (1)
20public EvaluationLoggingContext(ILoggingService loggingService, BuildEventContext buildEventContext, string projectFile)
BackEnd\Components\Logging\LoggingContext.cs (3)
24private readonly ILoggingService _loggingService; 43public LoggingContext(ILoggingService loggingService, BuildEventContext eventContext) 76public ILoggingService LoggingService
BackEnd\Components\Logging\LoggingService.cs (4)
577/// <inheritdoc cref="ILoggingService.SetIncludeEvaluationPropertiesAndItemsInEvents"/> 628/// <inheritdoc cref="ILoggingService.IncludeEvaluationPropertiesAndItemsInProjectStartedEvent"/> 639/// <inheritdoc cref="ILoggingService.IncludeEvaluationPropertiesAndItemsInEvaluationFinishedEvent"/> 878public static ILoggingService CreateLoggingService(LoggerMode mode, int node)
BackEnd\Components\Logging\NodeLoggingContext.cs (1)
24internal NodeLoggingContext(ILoggingService loggingService, int nodeId, bool inProcNode)
BackEnd\Components\Logging\ProjectLoggingContext.cs (1)
203ILoggingService loggingService = nodeLoggingContext.LoggingService;
BackEnd\Components\Logging\ProjectTelemetry.cs (1)
123public void LogProjectTelemetry(ILoggingService loggingService, BuildEventContext buildEventContext)
BackEnd\Components\Logging\TargetLoggingContext.cs (1)
55internal TargetLoggingContext(ILoggingService loggingService, BuildEventContext outOfProcContext)
BackEnd\Components\Logging\TaskLoggingContext.cs (1)
87internal TaskLoggingContext(ILoggingService loggingService, BuildEventContext outOfProcContext)
BackEnd\Components\ProjectCache\ProjectCacheService.cs (6)
42private readonly ILoggingService _loggingService; 82ILoggingService loggingService, 1044private readonly ILoggingService _loggingService; 1053ILoggingService loggingService, 1099private readonly ILoggingService _loggingService; 1108ILoggingService loggingService,
BackEnd\Components\RequestBuilder\RequestBuilder.cs (2)
1411ILoggingService loggingService = _projectLoggingContext?.LoggingService; 1491ILoggingService loggingService = _projectLoggingContext?.LoggingService;
BackEnd\Components\RequestBuilder\TargetUpToDateChecker.cs (3)
23using ILoggingService = Microsoft.Build.BackEnd.Logging.ILoggingService; 56internal TargetUpToDateChecker(ProjectInstance project, ProjectTargetInstance targetToAnalyze, ILoggingService loggingServices, BuildEventContext buildEventContext) 1250private ILoggingService _loggingService;
BackEnd\Components\Scheduler\Scheduler.cs (5)
19using ILoggingService = Microsoft.Build.BackEnd.Logging.ILoggingService; 601ILoggingService loggingService = _componentHost.LoggingService; 2400private void WriteNodeUtilizationGraph(ILoggingService loggingService, BuildEventContext context, bool useConfigurations) 2534private void WriteNodeUtilizationGraphLine(ILoggingService loggingService, BuildEventContext context, int[] currentWork, int[] previousWork, DateTime currentEventTime, DateTime previousEventTime, int invalidWorkId, ref double accumulatedDuration) 2606private void WriteRecursiveSummary(ILoggingService loggingService, BuildEventContext context, int submissionId, SchedulableRequest request, int level, bool useConfigurations, bool isLastChild)
BackEnd\Components\Scheduler\SchedulingPlan.cs (2)
86public void WritePlan(int submissionId, ILoggingService loggingService, BuildEventContext buildEventContext) 135public void ReadPlan(int submissionId, ILoggingService loggingService, BuildEventContext buildEventContext)
BackEnd\Components\SdkResolution\MainNodeSdkResolverService.cs (4)
75ILoggingService loggingService = Host.GetComponent(BuildComponentType.LoggingService) as ILoggingService; 83ILoggingService loggingService = Host.GetComponent(BuildComponentType.LoggingService) as ILoggingService;
BackEnd\Node\InProcNode.cs (2)
15using ILoggingService = Microsoft.Build.BackEnd.Logging.ILoggingService; 503ILoggingService loggingService = _componentHost.LoggingService;
BackEnd\Node\OutOfProcNode.cs (3)
71private ILoggingService _loggingService; 195ILoggingService IBuildComponentHost.LoggingService => _loggingService; 779_loggingService = _componentFactories.GetComponent(BuildComponentType.LoggingService) as ILoggingService;
BuildCheck\Infrastructure\CheckContext\CheckLoggingContext.cs (2)
14/// <see cref="ICheckContext"/> that uses <see cref="ILoggingService"/> to dispatch. 20internal readonly struct CheckLoggingContext(ILoggingService loggingService, BuildEventContext eventContext)
BuildCheck\Infrastructure\CheckContext\CheckLoggingContextFactory.cs (2)
11private readonly ILoggingService _loggingService; 13public CheckLoggingContextFactory(ILoggingService loggingService) => _loggingService = loggingService;
Construction\Solution\SolutionProjectGenerator.cs (4)
27using ILoggingService = Microsoft.Build.BackEnd.Logging.ILoggingService; 141private readonly ILoggingService _loggingService; 176ILoggingService loggingService, 214ILoggingService loggingService,
Definition\Project.cs (7)
31using ILoggingService = Microsoft.Build.BackEnd.Logging.ILoggingService; 851internal ILoggingService LoggingService => ProjectCollection.LoggingService; 2505internal ILoggingService LoggingService => ProjectCollection.LoggingService; 3688private void ReevaluateIfNecessary(ILoggingService loggingServiceForEvaluation, EvaluationContext evaluationContext = null) 3697ILoggingService loggingServiceForEvaluation, 3721ILoggingService loggingServiceForEvaluation, 3731ILoggingService loggingServiceForEvaluation,
Definition\ProjectCollection.cs (3)
24using ILoggingService = Microsoft.Build.BackEnd.Logging.ILoggingService; 133private ILoggingService _loggingService; 913internal ILoggingService LoggingService
Evaluation\Conditionals\Parser.cs (3)
14using ILoggingService = Microsoft.Build.BackEnd.Logging.ILoggingService; 70private ILoggingService _loggingServices; 74internal ILoggingService LoggingServices
Evaluation\Evaluator.cs (4)
31using ILoggingService = Microsoft.Build.BackEnd.Logging.ILoggingService; 218ILoggingService loggingService, 311ILoggingService loggingService, 376internal static List<I> CreateItemsFromInclude(string rootDirectory, ProjectItemElement itemElement, IItemFactory<I, I> itemFactory, string unevaluatedIncludeEscaped, Expander<P, I> expander, ILoggingService loggingService, string buildEventFileInfoFullPath, BuildEventContext buildEventContext)
Instance\ProjectInstance.cs (11)
634internal ProjectInstance(ProjectRootElement xml, IDictionary<string, string> globalProperties, string toolsVersion, ILoggingService loggingService, int visualStudioVersionFromSolution, ProjectCollection projectCollection, ISdkResolverService sdkResolverService, int submissionId) 645internal ProjectInstance(string projectFile, IDictionary<string, string> globalProperties, string toolsVersion, BuildParameters buildParameters, ILoggingService loggingService, BuildEventContext buildEventContext, ISdkResolverService sdkResolverService, int submissionId, ProjectLoadSettings? projectLoadSettings) 661internal ProjectInstance(ProjectRootElement xml, IDictionary<string, string> globalProperties, string toolsVersion, BuildParameters buildParameters, ILoggingService loggingService, BuildEventContext buildEventContext, ISdkResolverService sdkResolverService, int submissionId) 2643ILoggingService loggingService, 2705ILoggingService loggingService, 2796internal bool Build(string[] targets, IEnumerable<ILogger> loggers, IEnumerable<ForwardingLoggerRecord> remoteLoggers, ILoggingService loggingService, int maxNodeCount, out IDictionary<string, TargetResult> targetOutputs) 2851internal bool Build(string[] targets, IEnumerable<ILogger> loggers, IEnumerable<ForwardingLoggerRecord> remoteLoggers, ILoggingService loggingService, out IDictionary<string, TargetResult> targetOutputs) 2998ILoggingService loggingService, 3052ILoggingService loggingService, 3196ILoggingService loggingService, 3576public GenericLoggingContext(ILoggingService loggingService, BuildEventContext eventContext)
Utilities\EngineFileUtilities.cs (4)
262case ILoggingService loggingService: 309case ILoggingService loggingService: 350case ILoggingService loggingService: 423private static void LogDriveEnumerationWarningWithLoggingService(ILoggingService loggingService, IElementLocation? includeLocation, BuildEventContext? buildEventContext, string? buildEventFileInfoFullPath, string filespecUnescaped)
Microsoft.Build.BuildCheck.UnitTests (1)
BuildCheckManagerProviderTests.cs (1)
24private readonly ILoggingService _loggingService;
Microsoft.Build.Engine.UnitTests (36)
BackEnd\BuildManager_Logging_Tests.cs (1)
87ILoggingService service = LoggingService.CreateLoggingService(LoggerMode.Synchronous, 1);
BackEnd\BuildTelemetryErrorCategorization_Tests.cs (4)
37var loggingService = LoggingService.CreateLoggingService(LoggerMode.Synchronous, 1); 102var loggingService = LoggingService.CreateLoggingService(LoggerMode.Synchronous, 1); 146var loggingService = LoggingService.CreateLoggingService(LoggerMode.Synchronous, 1); 183var loggingService = LoggingService.CreateLoggingService(LoggerMode.Synchronous, 1);
BackEnd\LoggingService_Tests.cs (4)
791ILoggingService ls = LoggingService.CreateLoggingService(LoggerMode.Synchronous, 1); 971ILoggingService loggingService = LoggingService.CreateLoggingService(loggerMode, nodeId); 1046ILoggingService node1LoggingService = LoggingService.CreateLoggingService(LoggerMode.Synchronous, 1); 1048ILoggingService node2LoggingService = LoggingService.CreateLoggingService(LoggerMode.Synchronous, 2);
BackEnd\MockHost.cs (2)
32private ILoggingService _loggingService; 146public ILoggingService LoggingService
BackEnd\NodeEndpointInProc_Tests.cs (1)
41public ILoggingService LoggingService
BackEnd\SdkResolverLoader_Tests.cs (1)
37ILoggingService loggingService = LoggingService.CreateLoggingService(LoggerMode.Synchronous, 1);
BackEnd\SdkResolverService_Tests.cs (1)
36ILoggingService loggingService = LoggingService.CreateLoggingService(LoggerMode.Synchronous, 1);
BackEnd\TargetBuilder_Tests.cs (3)
20using ILoggingService = Microsoft.Build.BackEnd.Logging.ILoggingService; 1736private ILoggingService _loggingService; 1803public ILoggingService LoggingService
BackEnd\TargetEntry_Tests.cs (2)
1106private ILoggingService _loggingService; 1165public ILoggingService LoggingService
BackEnd\TaskBuilder_Tests.cs (3)
22using ILoggingService = Microsoft.Build.BackEnd.Logging.ILoggingService; 1122private ILoggingService _loggingService; 1183public ILoggingService LoggingService
BackEnd\TaskExecutionHost_Tests.cs (1)
55private ILoggingService _loggingService;
BackEnd\TaskHost_Tests.cs (1)
52private ILoggingService _loggingService;
BackEnd\TaskRegistry_Tests.cs (1)
61private readonly ILoggingService _loggingService;
Construction\SolutionFilter_Tests.cs (3)
141ILoggingService mockLogger = CreateMockLoggingService(); 454private ILoggingService CreateMockLoggingService() 456ILoggingService loggingService = LoggingService.CreateLoggingService(LoggerMode.Synchronous, 0);
Construction\SolutionProjectGenerator_Tests.cs (3)
17using ILoggingService = Microsoft.Build.BackEnd.Logging.ILoggingService; 2930private ILoggingService CreateMockLoggingService() 2932ILoggingService loggingService = LoggingService.CreateLoggingService(LoggerMode.Synchronous, 0);
Evaluation\Expander_Tests.cs (2)
5245ILoggingService loggingService = LoggingService.CreateLoggingService(LoggerMode.Synchronous, 1); 5282ILoggingService loggingService = LoggingService.CreateLoggingService(LoggerMode.Synchronous, 1);
MockLoggingContext.cs (1)
16public MockLoggingContext(ILoggingService loggingService, BuildEventContext eventContext) : base(loggingService, eventContext)
Telemetry\Telemetry_Tests.cs (1)
531void ILoggingService.LogBuildEvent(BuildEventArgs buildEvent) => RecordedEvents.Add(buildEvent);
TestLoggingContext.cs (1)
11public TestLoggingContext(ILoggingService? loggingService, BuildEventContext eventContext) : base(