62 references to LoggingService
Microsoft.Build (62)
BackEnd\Components\Logging\BuildLoggingContext.cs (1)
63
LoggingService
.LogFatalTaskError(BuildEventContext, exception, file, taskName);
BackEnd\Components\Logging\EvaluationLoggingContext.cs (4)
33
LoggingService
.LogProjectEvaluationStarted(BuildEventContext, _projectFile);
34
LoggingService
.BuildEngineDataRouter.ProcessProjectEvaluationStarted(
35
new CheckLoggingContext(
LoggingService
, BuildEventContext), _projectFile);
48
LoggingService
.LogProjectEvaluationFinished(BuildEventContext, _projectFile, globalProperties, properties, items, profilerResult);
BackEnd\Components\Logging\LoggingContext.cs (2)
291
LoggingService
.LogBuildEvent(buildEvent);
302
LoggingService
.LogFatalBuildError(BuildEventContext, exception, file);
BackEnd\Components\Logging\NodeLoggingContext.cs (3)
31
LoggingService
.LogBuildStarted();
48
LoggingService
.LogBuildFinished(success);
62
LoggingService
.LogProjectStarted(arg);
BackEnd\Components\Logging\ProjectLoggingContext.cs (5)
111
LoggingService
.LogComment(this.BuildEventContext, MessageImportance.Low, "ToolsVersionInEffectForBuild", projectStarted.ToolsVersion);
150
LoggingService
.LogComment(this.BuildEventContext, MessageImportance.Low, "ToolsVersionInEffectForBuild", toolsVersion);
182
nodeLoggingContext.
LoggingService
.LogProjectStarted(args);
203
ILoggingService loggingService = nodeLoggingContext.
LoggingService
;
273
LoggingService
.LogProjectFinished(BuildEventContext, _projectFullPath, success);
BackEnd\Components\Logging\TargetLoggingContext.cs (4)
45
BuildEventContext buildEventContext = projectLoggingContext.
LoggingService
.LogTargetStarted(
93
if (!
LoggingService
.OnlyLogCriticalEvents
94
&& (
LoggingService
.EnableTargetOutputLogging || Traits.Instance.EnableTargetOutputLogging)
100
LoggingService
.LogTargetFinished(BuildEventContext, _target.Name, projectFullPath, _target.Location.File, success, targetOutputWrapper);
BackEnd\Components\Logging\TaskLoggingContext.cs (6)
49
BuildEventContext buildEventContext = targetLoggingContext.
LoggingService
.LogTaskStarted2(
133
LoggingService
.LogTaskFinished(
151
LoggingService
.LogTaskWarningFromException(BuildEventContext, exception, file, taskName);
156
return
LoggingService
.GetWarningsAsErrors(BuildEventContext);
161
return
LoggingService
.GetWarningsNotAsErrors(BuildEventContext);
166
return
LoggingService
.GetWarningsAsMessages(BuildEventContext);
BackEnd\Components\RequestBuilder\AssemblyLoadsTracker.cs (1)
171
_loggingContext.
LoggingService
.LogBuildEvent(buildArgs);
BackEnd\Components\RequestBuilder\IntrinsicTasks\ItemGroupIntrinsicTask.cs (2)
221
if (LogTaskInputs && !LoggingContext.
LoggingService
.OnlyLogCriticalEvents && itemsToAdd?.Count > 0)
271
if (LogTaskInputs && !LoggingContext.
LoggingService
.OnlyLogCriticalEvents && itemsToRemove.Count > 0)
BackEnd\Components\RequestBuilder\IntrinsicTasks\PropertyGroupIntrinsicTask.cs (1)
99
if (LogTaskInputs && !LoggingContext.
LoggingService
.OnlyLogCriticalEvents)
BackEnd\Components\RequestBuilder\RequestBuilder.cs (6)
883
_projectLoggingContext.ProjectTelemetry.LogProjectTelemetry(_projectLoggingContext.
LoggingService
, _projectLoggingContext.BuildEventContext);
1119
new CheckLoggingContext(_nodeLoggingContext.
LoggingService
, _requestEntry.Request.BuildEventContext),
1235
new CheckLoggingContext(_nodeLoggingContext.
LoggingService
, _projectLoggingContext.BuildEventContext),
1367
ILoggingService loggingService = _projectLoggingContext?.
LoggingService
;
1382
new CheckLoggingContext(_nodeLoggingContext.
LoggingService
, _projectLoggingContext!.BuildEventContext),
1477
ILoggingService loggingService = _projectLoggingContext?.
LoggingService
;
BackEnd\Components\RequestBuilder\TargetEntry.cs (3)
370
if (projectLoggingContext.
LoggingService
.MinimumRequiredMessageImportance > MessageImportance.Low &&
371
!projectLoggingContext.
LoggingService
.OnlyLogCriticalEvents)
476
TargetUpToDateChecker dependencyAnalyzer = new TargetUpToDateChecker(requestEntry.RequestConfiguration.Project, _target, targetLoggingContext.
LoggingService
, targetLoggingContext.BuildEventContext);
BackEnd\Components\RequestBuilder\TaskBuilder.cs (2)
622
if (_targetLoggingContext.
LoggingService
.MinimumRequiredMessageImportance > MessageImportance.Low &&
623
!_targetLoggingContext.
LoggingService
.OnlyLogCriticalEvents)
BackEnd\Components\RequestBuilder\TaskHost.cs (8)
459
_taskLoggingContext.
LoggingService
.LogBuildEvent(warningEvent);
462
_taskLoggingContext.
LoggingService
.LogComment(_taskLoggingContext.BuildEventContext, MessageImportance.Normal, "ErrorConvertedIntoWarning");
467
_taskLoggingContext.
LoggingService
.LogBuildEvent(e);
511
_taskLoggingContext.
LoggingService
.LogBuildEvent(e);
552
_taskLoggingContext.
LoggingService
.LogBuildEvent(e);
593
_taskLoggingContext.
LoggingService
.LogBuildEvent(e);
675
_taskLoggingContext.
LoggingService
.LogTelemetry(_taskLoggingContext.BuildEventContext, eventName, properties);
937
MessageImportance minimumImportance = _taskHost._taskLoggingContext?.
LoggingService
.MinimumRequiredMessageImportance ?? MessageImportance.Low;
BackEnd\Components\SdkResolution\SdkResolverService.cs (1)
383
else if (loggingContext.
LoggingService
.MinimumRequiredMessageImportance >= MessageImportance.Low)
BackEnd\Node\InProcNode.cs (1)
361
_loggingContext.
LoggingService
.OnLoggingThreadException -= OnLoggingThreadException;
BackEnd\Node\OutOfProcNode.cs (1)
525
_loggingContext.
LoggingService
.OnLoggingThreadException -= OnLoggingThreadException;
BackEnd\TaskExecutionHost\TaskExecutionHost.cs (5)
1366
if (LogTaskInputs && !_taskLoggingContext.
LoggingService
.OnlyLogCriticalEvents)
1525
if (hasElements && LogTaskInputs && !_taskLoggingContext.
LoggingService
.OnlyLogCriticalEvents && parameter.Log)
1571
if (LogTaskInputs && !_taskLoggingContext.
LoggingService
.OnlyLogCriticalEvents)
1619
if (LogTaskInputs && !_taskLoggingContext.
LoggingService
.OnlyLogCriticalEvents && outputs.Length > 0 && parameter.Log)
1658
if (LogTaskInputs && !_taskLoggingContext.
LoggingService
.OnlyLogCriticalEvents)
Evaluation\ConditionEvaluator.cs (1)
261
conditionParser.LoggingServices = loggingContext?.
LoggingService
;
Evaluation\Evaluator.cs (1)
359
if (evaluator._evaluationLoggingContext.
LoggingService
.IncludeEvaluationPropertiesAndItemsInEvaluationFinishedEvent)
Instance\TaskFactoryEngineContext.cs (4)
213
_loggingContext.
LoggingService
.LogBuildEvent(e);
234
_loggingContext.
LoggingService
.LogBuildEvent(e);
255
_loggingContext.
LoggingService
.LogBuildEvent(e);
276
_loggingContext.
LoggingService
.LogBuildEvent(e);