3 implementations of ILoggingService
Microsoft.Build (2)
BackEnd\Components\Logging\LoggingService.cs (1)
72internal partial class LoggingService : ILoggingService, INodePacketHandler, IBuildComponent
BackEnd\Components\Logging\LoggingServiceLogMethods.cs (1)
21internal partial class LoggingService : ILoggingService, INodePacketHandler, IBuildComponent
Microsoft.Build.Engine.UnitTests (1)
BackEnd\MockLoggingService.cs (1)
22internal class MockLoggingService : ILoggingService
140 references to ILoggingService
Microsoft.Build (110)
BackEnd\BuildManager\BuildManager.cs (18)
385ILoggingService IBuildComponentHost.LoggingService => _componentFactories.GetComponent(BuildComponentType.LoggingService) as ILoggingService; 576var loggingService = InitializeLoggingService(); 630ILoggingService InitializeLoggingService() 632ILoggingService loggingService = CreateLoggingService( 1059ILoggingService loggingService = ((IBuildComponentHost)this).LoggingService; 2496ILoggingService loggingService = ((IBuildComponentHost)this).GetComponent(BuildComponentType.LoggingService) as ILoggingService; 2516ILoggingService loggingService = ((IBuildComponentHost)this).GetComponent(BuildComponentType.LoggingService) as ILoggingService; 2826ILoggingService loggingService = ((IBuildComponentHost)this).GetComponent(BuildComponentType.LoggingService) as ILoggingService; 2957private ILoggingService CreateLoggingService( 2972ILoggingService loggingService = LoggingService.CreateLoggingService(loggerMode, 3052private static void LogDeferredMessages(ILoggingService loggingService, IEnumerable<DeferredBuildMessage> deferredBuildMessages) 3091private void ShutdownLoggingService(ILoggingService loggingService) 3217var loggingService = ((IBuildComponentHost)this).LoggingService; 3224var loggingService = ((IBuildComponentHost)this).LoggingService;
BackEnd\Components\Communications\NodeProviderOutOfProcBase.cs (2)
120var loggingService = _componentHost.LoggingService; 829public async Task WaitForExitAsync(ILoggingService loggingService)
BackEnd\Components\IBuildComponentHost.cs (2)
5using ILoggingService = Microsoft.Build.BackEnd.Logging.ILoggingService; 177ILoggingService LoggingService { get; }
BackEnd\Components\Logging\BuildLoggingContext.cs (1)
33protected BuildLoggingContext(ILoggingService loggingService, BuildEventContext buildEventContext, bool inProc) : base(loggingService, buildEventContext)
BackEnd\Components\Logging\EvaluationLoggingContext.cs (1)
21public EvaluationLoggingContext(ILoggingService loggingService, BuildEventContext buildEventContext, string projectFile)
BackEnd\Components\Logging\LoggingContext.cs (3)
24private readonly ILoggingService _loggingService; 43public LoggingContext(ILoggingService loggingService, BuildEventContext eventContext) 70public ILoggingService LoggingService
BackEnd\Components\Logging\LoggingService.cs (1)
781public static ILoggingService CreateLoggingService(LoggerMode mode, int node)
BackEnd\Components\Logging\NodeLoggingContext.cs (1)
23internal NodeLoggingContext(ILoggingService loggingService, int nodeId, bool inProcNode)
BackEnd\Components\Logging\TargetLoggingContext.cs (1)
52internal TargetLoggingContext(ILoggingService loggingService, BuildEventContext outOfProcContext)
BackEnd\Components\Logging\TaskLoggingContext.cs (1)
83internal TaskLoggingContext(ILoggingService loggingService, BuildEventContext outOfProcContext)
BackEnd\Components\ProjectCache\ProjectCacheService.cs (4)
38private readonly ILoggingService _loggingService; 78ILoggingService loggingService, 885private readonly ILoggingService _loggingService; 894ILoggingService loggingService,
BackEnd\Components\RequestBuilder\RequestBuilder.cs (1)
1364ILoggingService loggingService = _projectLoggingContext?.LoggingService;
BackEnd\Components\RequestBuilder\TargetUpToDateChecker.cs (3)
22using ILoggingService = Microsoft.Build.BackEnd.Logging.ILoggingService; 55internal TargetUpToDateChecker(ProjectInstance project, ProjectTargetInstance targetToAnalyze, ILoggingService loggingServices, BuildEventContext buildEventContext) 1244private ILoggingService _loggingService;
BackEnd\Components\Scheduler\Scheduler.cs (6)
19using ILoggingService = Microsoft.Build.BackEnd.Logging.ILoggingService; 557ILoggingService loggingService = _componentHost.LoggingService; 1961private bool CheckIfCacheMissOnReferencedProjectIsAllowedAndErrorIfNot(int nodeForResults, BuildRequest request, List<ScheduleResponse> responses, out Action<ILoggingService> emitNonErrorLogs) 2294private void WriteNodeUtilizationGraph(ILoggingService loggingService, BuildEventContext context, bool useConfigurations) 2428private void WriteNodeUtilizationGraphLine(ILoggingService loggingService, BuildEventContext context, int[] currentWork, int[] previousWork, DateTime currentEventTime, DateTime previousEventTime, int invalidWorkId, ref double accumulatedDuration) 2500private 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)
14using ILoggingService = Microsoft.Build.BackEnd.Logging.ILoggingService; 483ILoggingService loggingService = _componentHost.LoggingService;
BackEnd\Node\OutOfProcNode.cs (3)
67private ILoggingService _loggingService; 191ILoggingService IBuildComponentHost.LoggingService => _loggingService; 760_loggingService = _componentFactories.GetComponent(BuildComponentType.LoggingService) as ILoggingService;
BuildCheck\Acquisition\BuildCheckAcquisitionModule.cs (2)
18private readonly ILoggingService _loggingService; 20internal BuildCheckAcquisitionModule(ILoggingService loggingService) => _loggingService = loggingService;
BuildCheck\Infrastructure\BuildCheckManagerProvider.cs (2)
68private readonly ILoggingService _loggingService; 74internal BuildCheckManager(ILoggingService loggingService)
BuildCheck\Logging\AnalyzerLoggingContext.cs (1)
12public AnalyzerLoggingContext(ILoggingService loggingService, BuildEventContext eventContext)
BuildCheck\Logging\AnalyzerLoggingContextFactory.cs (1)
10internal class AnalyzerLoggingContextFactory(ILoggingService loggingService) : IBuildAnalysisLoggingContextFactory
Construction\Solution\SolutionProjectGenerator.cs (4)
27using ILoggingService = Microsoft.Build.BackEnd.Logging.ILoggingService; 141private readonly ILoggingService _loggingService; 176ILoggingService loggingService, 214ILoggingService loggingService,
Definition\Project.cs (7)
30using ILoggingService = Microsoft.Build.BackEnd.Logging.ILoggingService; 845internal ILoggingService LoggingService => ProjectCollection.LoggingService; 2500internal ILoggingService LoggingService => ProjectCollection.LoggingService; 3670private void ReevaluateIfNecessary(ILoggingService loggingServiceForEvaluation, EvaluationContext evaluationContext = null) 3679ILoggingService loggingServiceForEvaluation, 3703ILoggingService loggingServiceForEvaluation, 3713ILoggingService loggingServiceForEvaluation,
Definition\ProjectCollection.cs (3)
23using ILoggingService = Microsoft.Build.BackEnd.Logging.ILoggingService; 132private ILoggingService _loggingService; 851internal ILoggingService LoggingService
Definition\Toolset.cs (8)
22using ILoggingService = Microsoft.Build.BackEnd.Logging.ILoggingService; 688internal static string[] GetTaskFiles(DirectoryGetFiles getFiles, ILoggingService loggingServices, BuildEventContext buildEventContext, string taskPattern, string searchPath, string taskFileWarning) 826internal TaskRegistry GetTaskRegistry(ILoggingService loggingServices, BuildEventContext buildEventContext, ProjectRootElementCacheBase projectRootElementCache) 853internal TaskRegistry GetOverrideTaskRegistry(ILoggingService loggingServices, BuildEventContext buildEventContext, ProjectRootElementCacheBase projectRootElementCache) 873private void RegisterDefaultTasks(ILoggingService loggingServices, BuildEventContext buildEventContext, ProjectRootElementCacheBase projectRootElementCache) 896private void InitializeProperties(ILoggingService loggingServices, BuildEventContext buildEventContext) 979private void RegisterOverrideTasks(ILoggingService loggingServices, BuildEventContext buildEventContext, ProjectRootElementCacheBase projectRootElementCache) 1037private void LoadAndRegisterFromTasksFile(string[] defaultTaskFiles, ILoggingService loggingServices, BuildEventContext buildEventContext, string taskFileError, ProjectRootElementCacheBase projectRootElementCache, TaskRegistry registry)
Evaluation\Conditionals\Parser.cs (3)
14using ILoggingService = Microsoft.Build.BackEnd.Logging.ILoggingService; 70private ILoggingService _loggingServices; 74internal ILoggingService LoggingServices
Evaluation\ConditionEvaluator.cs (3)
14using ILoggingService = Microsoft.Build.BackEnd.Logging.ILoggingService; 189ILoggingService loggingServices, 227ILoggingService loggingServices,
Evaluation\Evaluator.cs (4)
31using ILoggingService = Microsoft.Build.BackEnd.Logging.ILoggingService; 212ILoggingService loggingService, 309ILoggingService loggingService, 349internal 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 (9)
600internal ProjectInstance(ProjectRootElement xml, IDictionary<string, string> globalProperties, string toolsVersion, ILoggingService loggingService, int visualStudioVersionFromSolution, ProjectCollection projectCollection, ISdkResolverService sdkResolverService, int submissionId) 611internal ProjectInstance(string projectFile, IDictionary<string, string> globalProperties, string toolsVersion, BuildParameters buildParameters, ILoggingService loggingService, BuildEventContext buildEventContext, ISdkResolverService sdkResolverService, int submissionId, ProjectLoadSettings? projectLoadSettings) 627internal ProjectInstance(ProjectRootElement xml, IDictionary<string, string> globalProperties, string toolsVersion, BuildParameters buildParameters, ILoggingService loggingService, BuildEventContext buildEventContext, ISdkResolverService sdkResolverService, int submissionId) 2388ILoggingService loggingService, 2499internal bool Build(string[] targets, IEnumerable<ILogger> loggers, IEnumerable<ForwardingLoggerRecord> remoteLoggers, ILoggingService loggingService, int maxNodeCount, out IDictionary<string, TargetResult> targetOutputs) 2549internal bool Build(string[] targets, IEnumerable<ILogger> loggers, IEnumerable<ForwardingLoggerRecord> remoteLoggers, ILoggingService loggingService, out IDictionary<string, TargetResult> targetOutputs) 2696ILoggingService loggingService, 2750ILoggingService loggingService, 2910ILoggingService loggingService,
Instance\TaskRegistry.cs (4)
21using ILoggingService = Microsoft.Build.BackEnd.Logging.ILoggingService; 252ILoggingService loggingService, 287ILoggingService loggingService, 690ILoggingService loggingService,
Utilities\EngineFileUtilities.cs (3)
261case ILoggingService loggingService: 305case ILoggingService loggingService: 393private 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 (29)
BackEnd\BuildManager_Logging_Tests.cs (1)
99ILoggingService service = LoggingService.CreateLoggingService(LoggerMode.Synchronous, 1);
BackEnd\LoggingService_Tests.cs (4)
792ILoggingService ls = LoggingService.CreateLoggingService(LoggerMode.Synchronous, 1); 972ILoggingService loggingService = LoggingService.CreateLoggingService(loggerMode, nodeId); 1047ILoggingService node1LoggingService = LoggingService.CreateLoggingService(LoggerMode.Synchronous, 1); 1049ILoggingService node2LoggingService = LoggingService.CreateLoggingService(LoggerMode.Synchronous, 2);
BackEnd\MockHost.cs (2)
31private ILoggingService _loggingService; 140public ILoggingService LoggingService
BackEnd\NodeEndpointInProc_Tests.cs (1)
42public ILoggingService LoggingService
BackEnd\SdkResolverLoader_Tests.cs (1)
38ILoggingService 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; 1699private ILoggingService _loggingService; 1766public ILoggingService LoggingService
BackEnd\TargetEntry_Tests.cs (2)
1208private ILoggingService _loggingService; 1267public ILoggingService LoggingService
BackEnd\TaskBuilder_Tests.cs (3)
24using ILoggingService = Microsoft.Build.BackEnd.Logging.ILoggingService; 1254private ILoggingService _loggingService; 1315public ILoggingService LoggingService
BackEnd\TaskExecutionHost_Tests.cs (1)
54private ILoggingService _loggingService;
BackEnd\TaskHost_Tests.cs (1)
52private ILoggingService _loggingService;
BackEnd\TaskRegistry_Tests.cs (1)
61private readonly ILoggingService _loggingService;
Construction\SolutionFilter_Tests.cs (3)
136ILoggingService mockLogger = CreateMockLoggingService(); 279private ILoggingService CreateMockLoggingService() 281ILoggingService loggingService = LoggingService.CreateLoggingService(LoggerMode.Synchronous, 0);
Construction\SolutionProjectGenerator_Tests.cs (3)
18using ILoggingService = Microsoft.Build.BackEnd.Logging.ILoggingService; 2738private ILoggingService CreateMockLoggingService() 2740ILoggingService loggingService = LoggingService.CreateLoggingService(LoggerMode.Synchronous, 0);
Evaluation\Expander_Tests.cs (1)
5079ILoggingService loggingService = LoggingService.CreateLoggingService(LoggerMode.Synchronous, 1);
MockLoggingContext.cs (1)
16public MockLoggingContext(ILoggingService loggingService, BuildEventContext eventContext) : base(loggingService, eventContext)