2 implementations of ILoggingService
Microsoft.Build (2)
BackEnd\Components\Logging\LoggingService.cs (1)
75internal partial class LoggingService : ILoggingService, INodePacketHandler
BackEnd\Components\Logging\LoggingServiceLogMethods.cs (1)
26internal partial class LoggingService : ILoggingService, INodePacketHandler, IBuildComponent
114 references to ILoggingService
Microsoft.Build (114)
BackEnd\BuildManager\BuildManager.cs (23)
391ILoggingService IBuildComponentHost.LoggingService => _componentFactories.GetComponent<ILoggingService>(BuildComponentType.LoggingService); 439/// <see cref="ILoggingService.LogBuildEvent"/>) instead of a plain comment. This lets a caller emit 482/// begins the event is raised as-is (via <see cref="ILoggingService.LogBuildEvent"/>), letting a 695var loggingService = InitializeLoggingService(); 830ILoggingService InitializeLoggingService() 832ILoggingService loggingService = CreateLoggingService( 986ILoggingService loggingService = ((IBuildComponentHost)this).LoggingService; 1233ILoggingService loggingService = ((IBuildComponentHost)this).LoggingService; 1339ILoggingService? loggingService = ((IBuildComponentHost)this).LoggingService; 1584ILoggingService? loggingService = ((IBuildComponentHost)this).LoggingService; 3016ILoggingService loggingService = ((IBuildComponentHost)this).GetComponent<ILoggingService>(BuildComponentType.LoggingService); 3035ILoggingService loggingService = ((IBuildComponentHost)this).GetComponent<ILoggingService>(BuildComponentType.LoggingService); 3320ILoggingService loggingService = ((IBuildComponentHost)this).GetComponent<ILoggingService>(BuildComponentType.LoggingService); 3453private ILoggingService CreateLoggingService( 3468ILoggingService loggingService = LoggingService.CreateLoggingService(loggerMode, 3632private static void LogDeferredMessages(ILoggingService loggingService, IEnumerable<DeferredBuildMessage>? deferredBuildMessages) 3688private void ShutdownLoggingService(ILoggingService? loggingService) 3822var loggingService = ((IBuildComponentHost)this).LoggingService; 3829var loggingService = ((IBuildComponentHost)this).LoggingService;
BackEnd\BuildManager\CoordinatorClient.cs (5)
111public static CoordinatorClient? TryConnect(int requestedNodes, CoordinatorSettings settings, ILoggingService loggingService) 177ILoggingService loggingService, 318ILoggingService? loggingService) 397ILoggingService? loggingService) 460private static bool TryLaunchCoordinator(ILoggingService loggingService, ICoordinatorDebugOutput output)
BackEnd\BuildManager\EnvironmentVariableValidator.cs (2)
25internal static void ValidateEnvironmentVariables(ILoggingService loggingService) 34private static void ValidateDotnetHostPath(ILoggingService loggingService)
BackEnd\Components\Communications\NodeProviderOutOfProcBase.cs (2)
132var loggingService = _componentHost.LoggingService; 1536public 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)
26private readonly ILoggingService _loggingService; 45public LoggingContext(ILoggingService loggingService, BuildEventContext eventContext) 78public ILoggingService LoggingService
BackEnd\Components\Logging\LoggingService.cs (4)
584/// <inheritdoc cref="ILoggingService.SetIncludeEvaluationPropertiesAndItemsInEvents"/> 625/// <inheritdoc cref="ILoggingService.IncludeEvaluationPropertiesAndItemsInProjectStartedEvent"/> 636/// <inheritdoc cref="ILoggingService.IncludeEvaluationPropertiesAndItemsInEvaluationFinishedEvent"/> 880public 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)
43private readonly ILoggingService _loggingService; 83ILoggingService loggingService, 1048private readonly ILoggingService _loggingService; 1057ILoggingService loggingService, 1103private readonly ILoggingService _loggingService; 1112ILoggingService loggingService,
BackEnd\Components\RequestBuilder\RequestBuilder.cs (2)
1465ILoggingService loggingService = _projectLoggingContext?.LoggingService; 1545ILoggingService loggingService = _projectLoggingContext?.LoggingService;
BackEnd\Components\RequestBuilder\TargetUpToDateChecker.cs (3)
24using ILoggingService = Microsoft.Build.BackEnd.Logging.ILoggingService; 57internal TargetUpToDateChecker(ProjectInstance project, ProjectTargetInstance targetToAnalyze, ILoggingService loggingServices, BuildEventContext buildEventContext) 1256private ILoggingService _loggingService;
BackEnd\Components\Scheduler\Scheduler.cs (5)
21using ILoggingService = Microsoft.Build.BackEnd.Logging.ILoggingService; 616ILoggingService loggingService = _componentHost.LoggingService; 2433private void WriteNodeUtilizationGraph(ILoggingService loggingService, BuildEventContext context, bool useConfigurations) 2567private void WriteNodeUtilizationGraphLine(ILoggingService loggingService, BuildEventContext context, int[] currentWork, int[] previousWork, DateTime currentEventTime, DateTime previousEventTime, int invalidWorkId, ref double accumulatedDuration) 2639private 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)
74ILoggingService loggingService = Host.GetComponent(BuildComponentType.LoggingService) as ILoggingService; 82ILoggingService loggingService = Host.GetComponent(BuildComponentType.LoggingService) as ILoggingService;
BackEnd\Node\InProcNode.cs (2)
14using ILoggingService = Microsoft.Build.BackEnd.Logging.ILoggingService; 501ILoggingService loggingService = _componentHost.LoggingService;
BackEnd\Node\OutOfProcNode.cs (3)
73private ILoggingService _loggingService; 210ILoggingService IBuildComponentHost.LoggingService => _loggingService; 801_loggingService = _componentFactories.GetComponent(BuildComponentType.LoggingService) as ILoggingService;
BuildCheck\Infrastructure\CheckContext\CheckLoggingContext.cs (2)
15/// <see cref="ICheckContext"/> that uses <see cref="ILoggingService"/> to dispatch. 21internal 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)
24using ILoggingService = Microsoft.Build.BackEnd.Logging.ILoggingService; 139private readonly ILoggingService _loggingService; 174ILoggingService loggingService, 213ILoggingService loggingService,
Definition\Project.cs (7)
30using ILoggingService = Microsoft.Build.BackEnd.Logging.ILoggingService; 858internal ILoggingService LoggingService => ProjectCollection.LoggingService; 2524internal ILoggingService LoggingService => ProjectCollection.LoggingService; 3553private void ReevaluateIfNecessary(ILoggingService loggingServiceForEvaluation, EvaluationContext evaluationContext = null) 3562ILoggingService loggingServiceForEvaluation, 3586ILoggingService loggingServiceForEvaluation, 3596ILoggingService loggingServiceForEvaluation,
Definition\ProjectCollection.cs (3)
25using ILoggingService = Microsoft.Build.BackEnd.Logging.ILoggingService; 139private ILoggingService _loggingService; 990internal ILoggingService LoggingService
Evaluation\Conditionals\Parser.cs (3)
14using ILoggingService = Microsoft.Build.BackEnd.Logging.ILoggingService; 70private ILoggingService _loggingServices; 74internal ILoggingService LoggingServices
Evaluation\Evaluator.cs (3)
31using ILoggingService = Microsoft.Build.BackEnd.Logging.ILoggingService; 342ILoggingService loggingService, 456internal static List<I> CreateItemsFromInclude(string rootDirectory, ProjectItemElement itemElement, IItemFactory<I, I> itemFactory, string unevaluatedIncludeEscaped, Expander<P, I> expander, ILoggingService loggingService, string projectFilePath, BuildEventContext buildEventContext)
Instance\ProjectInstance.cs (11)
645internal ProjectInstance(ProjectRootElement xml, IDictionary<string, string> globalProperties, string toolsVersion, ILoggingService loggingService, int visualStudioVersionFromSolution, ProjectCollection projectCollection, ISdkResolverService sdkResolverService, int submissionId) 656internal ProjectInstance(string projectFile, IDictionary<string, string> globalProperties, string toolsVersion, BuildParameters buildParameters, ILoggingService loggingService, BuildEventContext buildEventContext, ISdkResolverService sdkResolverService, int submissionId, ProjectLoadSettings? projectLoadSettings) 672internal ProjectInstance(ProjectRootElement xml, IDictionary<string, string> globalProperties, string toolsVersion, BuildParameters buildParameters, ILoggingService loggingService, BuildEventContext buildEventContext, ISdkResolverService sdkResolverService, int submissionId) 2691ILoggingService loggingService, 2754ILoggingService loggingService, 2846internal bool Build(string[] targets, IEnumerable<ILogger> loggers, IEnumerable<ForwardingLoggerRecord> remoteLoggers, ILoggingService loggingService, int maxNodeCount, out IDictionary<string, TargetResult> targetOutputs) 2902internal bool Build(string[] targets, IEnumerable<ILogger> loggers, IEnumerable<ForwardingLoggerRecord> remoteLoggers, ILoggingService loggingService, out IDictionary<string, TargetResult> targetOutputs) 3050ILoggingService loggingService, 3105ILoggingService loggingService, 3249ILoggingService loggingService, 3633public GenericLoggingContext(ILoggingService loggingService, BuildEventContext eventContext)
Utilities\EngineFileUtilities.cs (4)
263case ILoggingService loggingService: 312case ILoggingService loggingService: 355case ILoggingService loggingService: 429private static void LogDriveEnumerationWarningWithLoggingService(ILoggingService loggingService, IElementLocation? includeLocation, BuildEventContext? buildEventContext, string? projectFilePath, string filespecUnescaped)