2 implementations of ILoggingService
Microsoft.Build (2)
BackEnd\Components\Logging\LoggingService.cs (1)
74internal partial class LoggingService : ILoggingService, INodePacketHandler
BackEnd\Components\Logging\LoggingServiceLogMethods.cs (1)
25internal partial class LoggingService : ILoggingService, INodePacketHandler, IBuildComponent
111 references to ILoggingService
Microsoft.Build (111)
BackEnd\BuildManager\BuildManager.cs (20)
383ILoggingService IBuildComponentHost.LoggingService => _componentFactories.GetComponent<ILoggingService>(BuildComponentType.LoggingService); 629var loggingService = InitializeLoggingService(); 713ILoggingService InitializeLoggingService() 715ILoggingService loggingService = CreateLoggingService( 869ILoggingService loggingService = ((IBuildComponentHost)this).LoggingService; 1149ILoggingService? loggingService = ((IBuildComponentHost)this).LoggingService; 1377ILoggingService? loggingService = ((IBuildComponentHost)this).LoggingService; 2770ILoggingService loggingService = ((IBuildComponentHost)this).GetComponent<ILoggingService>(BuildComponentType.LoggingService); 2783ILoggingService loggingService = ((IBuildComponentHost)this).GetComponent<ILoggingService>(BuildComponentType.LoggingService); 3055ILoggingService loggingService = ((IBuildComponentHost)this).GetComponent<ILoggingService>(BuildComponentType.LoggingService); 3187private ILoggingService CreateLoggingService( 3202ILoggingService loggingService = LoggingService.CreateLoggingService(loggerMode, 3366private static void LogDeferredMessages(ILoggingService loggingService, IEnumerable<DeferredBuildMessage>? deferredBuildMessages) 3415private void ShutdownLoggingService(ILoggingService? loggingService) 3546var loggingService = ((IBuildComponentHost)this).LoggingService; 3553var loggingService = ((IBuildComponentHost)this).LoggingService;
BackEnd\BuildManager\CoordinatorClient.cs (4)
131public static CoordinatorClient? TryConnect(int requestedNodes, CoordinatorSettings settings, ILoggingService loggingService) 197ILoggingService loggingService, 338ILoggingService? loggingService) 520private static bool TryLaunchCoordinator(ILoggingService loggingService, ICoordinatorDebugOutput output)
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; 1295public 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)
19public 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)
23internal NodeLoggingContext(ILoggingService loggingService, int nodeId, bool inProcNode)
BackEnd\Components\Logging\ProjectLoggingContext.cs (1)
202ILoggingService 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, 1037private readonly ILoggingService _loggingService; 1046ILoggingService loggingService, 1092private readonly ILoggingService _loggingService; 1101ILoggingService loggingService,
BackEnd\Components\RequestBuilder\RequestBuilder.cs (2)
1407ILoggingService loggingService = _projectLoggingContext?.LoggingService; 1487ILoggingService 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) 1247private ILoggingService _loggingService;
BackEnd\Components\Scheduler\Scheduler.cs (5)
21using ILoggingService = Microsoft.Build.BackEnd.Logging.ILoggingService; 616ILoggingService loggingService = _componentHost.LoggingService; 2405private void WriteNodeUtilizationGraph(ILoggingService loggingService, BuildEventContext context, bool useConfigurations) 2539private void WriteNodeUtilizationGraphLine(ILoggingService loggingService, BuildEventContext context, int[] currentWork, int[] previousWork, DateTime currentEventTime, DateTime previousEventTime, int invalidWorkId, ref double accumulatedDuration) 2611private 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; 497ILoggingService 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; 2494internal ILoggingService LoggingService => ProjectCollection.LoggingService; 3677private void ReevaluateIfNecessary(ILoggingService loggingServiceForEvaluation, EvaluationContext evaluationContext = null) 3686ILoggingService loggingServiceForEvaluation, 3710ILoggingService loggingServiceForEvaluation, 3720ILoggingService loggingServiceForEvaluation,
Definition\ProjectCollection.cs (3)
25using ILoggingService = Microsoft.Build.BackEnd.Logging.ILoggingService; 139private ILoggingService _loggingService; 919internal 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; 225ILoggingService loggingService, 318ILoggingService loggingService, 383internal 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) 2628ILoggingService loggingService, 2690ILoggingService loggingService, 2781internal bool Build(string[] targets, IEnumerable<ILogger> loggers, IEnumerable<ForwardingLoggerRecord> remoteLoggers, ILoggingService loggingService, int maxNodeCount, out IDictionary<string, TargetResult> targetOutputs) 2836internal bool Build(string[] targets, IEnumerable<ILogger> loggers, IEnumerable<ForwardingLoggerRecord> remoteLoggers, ILoggingService loggingService, out IDictionary<string, TargetResult> targetOutputs) 2983ILoggingService loggingService, 3037ILoggingService loggingService, 3181ILoggingService loggingService, 3561public GenericLoggingContext(ILoggingService loggingService, BuildEventContext eventContext)
Utilities\EngineFileUtilities.cs (4)
262case ILoggingService loggingService: 311case ILoggingService loggingService: 354case ILoggingService loggingService: 428private static void LogDriveEnumerationWarningWithLoggingService(ILoggingService loggingService, IElementLocation? includeLocation, BuildEventContext? buildEventContext, string? buildEventFileInfoFullPath, string filespecUnescaped)