1 interface inheriting from ILogger
Microsoft.Build.Framework (1)
INodeLogger.cs (1)
20public interface INodeLogger : ILogger
12 implementations of ILogger
Microsoft.Build (4)
BackEnd\BuildManager\BuildManager.cs (1)
3259internal class NullLogger : ILogger
BuildCheck\Infrastructure\BuildCheckConnectorLogger.cs (1)
16internal sealed class BuildCheckConnectorLogger : ILogger
Logging\BinaryLogger\BinaryLogger.cs (1)
24public sealed class BinaryLogger : ILogger
Logging\ProfilerLogger.cs (1)
23public sealed class ProfilerLogger : ILogger
Microsoft.Build.Engine.UnitTests (3)
BackEnd\LoggingService_Tests.cs (2)
1384public class RegularILogger : ILogger 1461public class TestLogger : ILogger
BackEnd\TaskHost_Tests.cs (1)
1113internal sealed class MyCustomLogger : ILogger
Microsoft.Build.UnitTests.Shared (1)
MockLogger.cs (1)
29public sealed class MockLogger : ILogger
Microsoft.Build.Utilities.Core (1)
Logger.cs (1)
15public abstract class Logger : ILogger
Microsoft.Build.Utilities.UnitTests (1)
MuxLogger_Tests.cs (1)
339private sealed class EventingLogger : ILogger
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (1)
MSBuild\Logging\MSBuildDiagnosticLogger.cs (1)
10internal class MSBuildDiagnosticLogger : MSB.Framework.ILogger
Microsoft.DotNet.ArcadeLogging (1)
PipelinesLogger.cs (1)
18public sealed class PipelinesLogger : ILogger
402 references to ILogger
Microsoft.Build (72)
BackEnd\BuildManager\BuildManager.cs (5)
659IEnumerable<ILogger> AppendDebuggingLoggers(IEnumerable<ILogger> loggers) 2894IEnumerable<ILogger>? loggers, 2937ILogger buildCheckLogger = 2950foreach (ILogger logger in loggers)
BackEnd\BuildManager\BuildParameters.cs (4)
152private IEnumerable<ILogger> _loggers; 283_loggers = other._loggers != null ? new List<ILogger>(other._loggers) : null; 494public IEnumerable<ILogger> Loggers 502foreach (ILogger logger in value)
BackEnd\Components\Logging\ForwardingLoggerRecord.cs (2)
21public ForwardingLoggerRecord(ILogger centralLogger, LoggerDescription forwardingLoggerDescription) 33public ILogger CentralLogger
BackEnd\Components\Logging\ILoggingService.cs (3)
102ICollection<ILogger> Loggers 306bool RegisterDistributedLogger(ILogger centralLogger, LoggerDescription forwardingLogger); 313bool RegisterLogger(ILogger logger);
BackEnd\Components\Logging\LoggingService.cs (15)
129private List<ILogger> _loggers; 300_loggers = new List<ILogger>(); 486public ICollection<ILogger> Loggers => _loggers; 778foreach (ILogger logger in _loggers) 902foreach (ILogger logger in _loggers) 928foreach (ILogger logger in _loggers) 941_loggers = new List<ILogger>(); 1034public bool RegisterLogger(ILogger logger) 1123public bool RegisterDistributedLogger(ILogger centralLogger, LoggerDescription forwardingLogger) 1467private void ShutdownLogger(ILogger logger) 1787private void InitializeLogger(ILogger logger, IEventSource sourceForLogger) 1789ILogger UnwrapLoggerType(ILogger log) 1835private void UpdateMinimumMessageImportance(ILogger logger) 1837var innerLogger = (logger is ProjectCollection.ReusableLogger reusableLogger) ? reusableLogger.OriginalLogger : logger;
Definition\Project.cs (11)
1499public bool Build(ILogger logger) 1501var loggers = new List<ILogger>(1) { logger }; 1514public bool Build(IEnumerable<ILogger> loggers) 1529public bool Build(IEnumerable<ILogger> loggers, IEnumerable<ForwardingLoggerRecord> remoteLoggers) 1558public bool Build(string target, IEnumerable<ILogger> loggers) 1574public bool Build(string target, IEnumerable<ILogger> loggers, IEnumerable<ForwardingLoggerRecord> remoteLoggers) 1607public bool Build(string[] targets, IEnumerable<ILogger> loggers) 1624public bool Build(string[] targets, IEnumerable<ILogger> loggers, IEnumerable<ForwardingLoggerRecord> remoteLoggers) 1630/// See <see cref="Build(string[], IEnumerable&lt;ILogger&gt;, IEnumerable&lt;ForwardingLoggerRecord&gt;)"/>. 1637public bool Build(string[] targets, IEnumerable<ILogger> loggers, IEnumerable<ForwardingLoggerRecord> remoteLoggers, EvaluationContext evaluationContext) 3329public override bool Build(string[] targets, IEnumerable<ILogger> loggers, IEnumerable<ForwardingLoggerRecord> remoteLoggers, EvaluationContext evaluationContext)
Definition\ProjectCollection.cs (15)
244public ProjectCollection(IDictionary<string, string> globalProperties, IEnumerable<ILogger> loggers, ToolsetDefinitionLocations toolsetDefinitionLocations) 262public ProjectCollection(IDictionary<string, string> globalProperties, IEnumerable<ILogger> loggers, IEnumerable<ForwardingLoggerRecord> remoteLoggers, ToolsetDefinitionLocations toolsetDefinitionLocations, int maxNodeCount, bool onlyLogCriticalEvents) 281public ProjectCollection(IDictionary<string, string> globalProperties, IEnumerable<ILogger> loggers, IEnumerable<ForwardingLoggerRecord> remoteLoggers, ToolsetDefinitionLocations toolsetDefinitionLocations, int maxNodeCount, bool onlyLogCriticalEvents, bool loadProjectsReadOnly) 303public ProjectCollection(IDictionary<string, string> globalProperties, IEnumerable<ILogger> loggers, IEnumerable<ForwardingLoggerRecord> remoteLoggers, ToolsetDefinitionLocations toolsetDefinitionLocations, int maxNodeCount, bool onlyLogCriticalEvents, bool loadProjectsReadOnly, bool useAsynchronousLogging, bool reuseProjectRootElementCache) 608public ICollection<ILogger> Loggers 616? (ICollection<ILogger>)ReadOnlyEmptyCollection<ILogger>.Instance 617: new List<ILogger>(_loggingService.Loggers); 1262public void RegisterLogger(ILogger logger) 1277public void RegisterLoggers(IEnumerable<ILogger> loggers) 1284foreach (ILogger logger in loggers) 1669private void RegisterLoggerInternal(ILogger logger) 1840private readonly ILogger _originalLogger; 1845internal ILogger OriginalLogger => _originalLogger; 1943public ReusableLogger(ILogger originalLogger)
Instance\ProjectInstance.cs (12)
2104public bool Build(IEnumerable<ILogger> loggers) 2119public bool Build(IEnumerable<ILogger> loggers, IEnumerable<ForwardingLoggerRecord> remoteLoggers) 2135public bool Build(string target, IEnumerable<ILogger> loggers) 2152public bool Build(string target, IEnumerable<ILogger> loggers, IEnumerable<ForwardingLoggerRecord> remoteLoggers) 2170public bool Build(string[] targets, IEnumerable<ILogger> loggers) 2187public bool Build(string[] targets, IEnumerable<ILogger> loggers, IEnumerable<ForwardingLoggerRecord> remoteLoggers) 2205public bool Build(string[] targets, IEnumerable<ILogger> loggers, out IDictionary<string, TargetResult> targetOutputs) 2222public bool Build(string[] targets, IEnumerable<ILogger> loggers, IEnumerable<ForwardingLoggerRecord> remoteLoggers, out IDictionary<string, TargetResult> targetOutputs) 2681internal bool Build(string[] targets, IEnumerable<ILogger> loggers, IEnumerable<ForwardingLoggerRecord> remoteLoggers, ILoggingService loggingService, int maxNodeCount, out IDictionary<string, TargetResult> targetOutputs) 2699parameters.Loggers = (loggers is ICollection<ILogger> loggersCollection) ? loggersCollection : new List<ILogger>(loggers); 2731internal bool Build(string[] targets, IEnumerable<ILogger> loggers, IEnumerable<ForwardingLoggerRecord> remoteLoggers, ILoggingService loggingService, out IDictionary<string, TargetResult> targetOutputs)
Logging\LoggerDescription.cs (4)
184public ILogger CreateLogger() 193private ILogger CreateLogger(bool forwardingLogger) 195ILogger logger = null; 218logger = (ILogger)Activator.CreateInstance(loggerClass.Type);
ObjectModelRemoting\DefinitionObjectsLinks\ProjectLink.cs (1)
256public abstract bool Build(string[] targets, IEnumerable<ILogger> loggers, IEnumerable<ForwardingLoggerRecord> remoteLoggers, EvaluationContext evaluationContext);
Microsoft.Build.CommandLine.UnitTests (15)
CommandLineSwitches_Tests.cs (1)
1165Array.Empty<ILogger>(),
XMake_Tests.cs (14)
2039var loggers = new List<ILogger>(); 2058var loggers = new List<ILogger>(); 2077var loggers = new List<ILogger>(); 2088loggers = new List<ILogger>(); 2099loggers = new List<ILogger>(); 2119var loggers = new List<ILogger>(); 2131loggers = new List<ILogger>(); 2144loggers = new List<ILogger>(); 2157loggers = new List<ILogger>(); 2170loggers = new List<ILogger>(); 2181loggers = new List<ILogger>(); 2191loggers = new List<ILogger>(); 2211var loggers = new List<ILogger>(); 2225var loggers = new List<ILogger>();
Microsoft.Build.Engine.OM.UnitTests (17)
Definition\Project_Tests.cs (9)
111bool result = project.Build(new ILogger[] { mockLogger }); 2076bool result = project.Build(new string[] { "nonexistent" }, new List<ILogger>() { logger }); 2118result = project.Build(new ILogger[] { mockLogger }); 2437List<ILogger> loggers = new List<ILogger>(); 2461List<ILogger> loggers = new List<ILogger>(); 2531List<ILogger> loggers = new List<ILogger>();
Definition\ProjectCollection_Tests.cs (1)
1229collection.RegisterLoggers(new Build.Framework.ILogger[] { new MockLogger(), new MockLogger() });
Definition\ProjectItemDefinition_Tests.cs (4)
218List<ILogger> loggers = new List<ILogger>() { logger }; 456List<ILogger> loggers = new List<ILogger>() { l };
Instance\ProjectInstance_Tests.cs (2)
359instance.Build("t", new ILogger[] { null }); 386instance.Build(target, new ILogger[] { logger });
ObjectModelRemoting\RemoteProjectsProviderMock\EvaluationLinkMocks\MockProjectLink.cs (1)
183public override bool Build(string[] targets, IEnumerable<ILogger> loggers, IEnumerable<ForwardingLoggerRecord> remoteLoggers, EvaluationContext evaluationContext)
Microsoft.Build.Engine.UnitTests (211)
BackEnd\BuildManager_Logging_Tests.cs (1)
150Loggers = new ILogger[] { _logger }
BackEnd\BuildManager_Tests.cs (15)
81Loggers = new ILogger[] { _logger }, 365Loggers = new List<ILogger> { new MockLogger(_output) } 445var customparameters = new BuildParameters { EnableNodeReuse = false, Loggers = new ILogger[] { _logger } }; 511Loggers = new ILogger[] { _logger }, 711Loggers = new ILogger[] { _logger }, 781Loggers = new ILogger[] { _logger }, 904var customParameters = new BuildParameters(projectCollection) { Loggers = new ILogger[] { _logger } }; 1537Loggers = new ILogger[] { _logger, new MockLogger(printEventsToStdout: true) }, 3132Loggers = new ILogger[] { cl }, 3210Loggers = new ILogger[] { cl }, 3295Loggers = new ILogger[] { cl }, 3783Loggers = new ILogger[] { _logger } 3869Loggers = new ILogger[] { _logger } 3938Loggers = new ILogger[] { _logger } 4040Loggers = new List<ILogger>()
BackEnd\IntrinsicTask_Tests.cs (59)
192p.Build(new string[] { "t" }, new ILogger[] { logger }); 208p.Build(new string[] { "t" }, new ILogger[] { logger }); 229p.Build(new string[] { "t" }, new ILogger[] { logger }); 916p.Build(new string[] { "t" }, new ILogger[] { logger }); 933p.Build(new string[] { "t" }, new ILogger[] { logger }); 955p.Build(new string[] { "t" }, new ILogger[] { logger }); 1087p.Build(new string[] { "t" }, new ILogger[] { logger }); 1171p.Build(new string[] { "t" }, new ILogger[] { logger }); 1225p.Build(new string[] { "t" }, new ILogger[] { logger }); 1248p.Build(new string[] { "t" }, new ILogger[] { logger }); 1282p.Build(new string[] { "t2" }, new ILogger[] { logger }); 1313p.Build(new string[] { "t" }, new ILogger[] { logger }); 1339p.Build(new string[] { "t" }, new ILogger[] { logger }); 1361p.Build(new string[] { "t2" }, new ILogger[] { logger }); 1381p.Build(new string[] { "t" }, new ILogger[] { logger }); 1403p.Build(new string[] { "t2" }, new ILogger[] { logger }); 1428p.Build(new string[] { "t" }, new ILogger[] { logger }); 1453p.Build(new string[] { "t" }, new ILogger[] { logger }); 1488p.Build(new string[] { "t2" }, new ILogger[] { logger }); 1530p.Build(new string[] { "t2" }, new ILogger[] { logger }); 1581p.Build(new string[] { "t2" }, new ILogger[] { logger }); 1691p.Build(new string[] { "t", "t2" }, new ILogger[] { logger }); 2300p.Build(new string[] { "t" }, new ILogger[] { logger }); 2334p.Build(new string[] { "t" }, new ILogger[] { logger }); 2371p.Build(new string[] { "t" }, new ILogger[] { logger }); 2408p.Build(new string[] { "t" }, new ILogger[] { logger }); 2445p.Build(new string[] { "t" }, new ILogger[] { logger }); 2483p.Build(new string[] { "t" }, new ILogger[] { logger }); 2514p.Build(new string[] { "t" }, new ILogger[] { logger }); 2569p.Build(new string[] { "t" }, new ILogger[] { logger }); 2595p.Build(new string[] { "t" }, new ILogger[] { logger }); 2639p.Build(new string[] { "t3" }, new ILogger[] { logger }); 2682p.Build(new string[] { "Build" }, new ILogger[] { logger }); 2726p.Build(new string[] { "Build" }, new ILogger[] { logger }); 2770p.Build(new string[] { "Build" }, new ILogger[] { logger }); 2815p.Build(new string[] { "t3" }, new ILogger[] { logger }); 2888p.Build(new string[] { "t" }, new ILogger[] { logger }); 2938p.Build(new string[] { "t" }, new ILogger[] { logger }); 3168p.Build(new string[] { "MIDL" }, new ILogger[] { logger }); 3201p.Build(new string[] { "t", "t2" }, new ILogger[] { logger }); 3247p.Build(new string[] { "t", "t2" }, new ILogger[] { logger }); 3287bool success = p.Build(new string[] { "a" }, new ILogger[] { logger }); 3315bool success = p.Build(new string[] { "a" }, new ILogger[] { logger }); 3361bool success = p.Build(new string[] { "a" }, new ILogger[] { logger }); 3406p.Build(new string[] { "t" }, new ILogger[] { logger }); 3446p.Build(new string[] { "t" }, new ILogger[] { logger }); 3483p.Build(new string[] { "t", "t2" }, new ILogger[] { logger }); 3509p.Build(new string[] { "t" }, new ILogger[] { logger }); 3577p.Build(new string[] { "t2" }, new ILogger[] { logger }); 3613p.Build(new string[] { "t" }, new ILogger[] { logger }); 3644p.Build(new string[] { "t" }, new ILogger[] { logger }); 3671p.Build(new string[] { "t" }, new ILogger[] { logger }); 3700p.Build(new string[] { "t" }, new ILogger[] { logger }); 3729p.Build(new string[] { "t" }, new ILogger[] { logger }); 3758p.Build(new string[] { "t" }, new ILogger[] { logger }); 3796p.Build(new string[] { "t" }, new ILogger[] { logger }); 3824p.Build(new string[] { "t" }, new ILogger[] { logger }); 3853p.Build(new string[] { "t" }, new ILogger[] { logger }); 3892p.Build(new string[] { "t" }, new ILogger[] { logger });
BackEnd\LoggingService_Tests.cs (1)
1104private void VerifyShutdownExceptions(ILogger logger, string className, Type expectedExceptionType)
BackEnd\MockLoggingService.cs (3)
59public ICollection<ILogger> Loggers 277public bool RegisterDistributedLogger(ILogger centralLogger, LoggerDescription forwardingLogger) 287public bool RegisterLogger(ILogger logger)
BackEnd\MSBuild_Tests.cs (1)
1558using ProjectCollection pc = new ProjectCollection(null, new List<ILogger> { logger }, null, ToolsetDefinitionLocations.Default, 2, false);
BackEnd\OnError_Tests.cs (20)
48p.Build(new string[] { "Build" }, new ILogger[] { l }); 176p.Build(new string[] { "Build" }, new ILogger[] { l }); 207p.Build(new string[] { "Build" }, new ILogger[] { l }); 240p.Build(new string[] { "Build" }, new ILogger[] { l }); 273p.Build(new string[] { "Build" }, new ILogger[] { l }); 305p.Build(new string[] { "Build" }, new ILogger[] { l }); 332p.Build(new string[] { "Build" }, new ILogger[] { l }); 360p.Build(new string[] { "Build" }, new ILogger[] { l }); 388p.Build(new string[] { "Build" }, new ILogger[] { l }); 420p.Build(new string[] { "Build" }, new ILogger[] { l }); 461p.Build(new string[] { "Build" }, new ILogger[] { l }); 488p.Build(new string[] { "Build" }, new ILogger[] { l }); 518p.Build(new string[] { "Build" }, new ILogger[] { l }); 543p.Build(new string[] { "Build" }, new ILogger[] { l }); 614p.Build(new string[] { "Build" }, new ILogger[] { l }); 636p.Build(new string[] { "Build" }, new ILogger[] { l }); 659p.Build(new string[] { "Build" }, new ILogger[] { l }); 682p.Build(new string[] { "Build" }, new ILogger[] { l }); 705p.Build(new string[] { "Build" }, new ILogger[] { l }); 728p.Build(new string[] { "Build" }, new ILogger[] { l });
BackEnd\Scheduler_Tests.cs (2)
83_parameters.Loggers = new ILogger[] { _logger }; 386_parameters.Loggers = new ILogger[] { _logger };
BackEnd\SdkResultOutOfProc_Tests.cs (3)
61Loggers = new ILogger[] { _logger }, 126var customparameters = new BuildParameters { EnableNodeReuse = false, Loggers = new ILogger[] { _logger } }; 171var customparameters = new BuildParameters { EnableNodeReuse = false, Loggers = new ILogger[] { _logger } };
BackEnd\TargetBuilder_Tests.cs (1)
329p.Build(new string[] { "Build" }, new ILogger[] { logger });
BackEnd\TargetEntry_Tests.cs (2)
853List<ILogger> loggers = new List<ILogger>();
BackEnd\TargetUpToDateChecker_Tests.cs (10)
62bool success = p.Build(new string[] { "Build" }, new ILogger[] { ml }); 93bool success = p.Build(new string[] { "Build" }, new ILogger[] { ml }); 123bool success = p.Build("Build", new ILogger[] { ml }); 148success = p.Build("Build", new ILogger[] { ml }); 322Assert.True(p.Build(new string[] { "Build" }, new ILogger[] { logger })); 351Assert.True(p.Build(new string[] { "Build" }, new ILogger[] { logger })); 380Assert.True(p.Build(new string[] { "Build" }, new ILogger[] { logger })); 410Assert.True(p.Build(new string[] { "Build" }, new ILogger[] { logger })); 445Assert.True(p.Build(new string[] { "Build" }, new ILogger[] { logger })); 523p.Build(new string[] { "Build" }, new ILogger[] { logger });
BackEnd\TaskBuilder_Tests.cs (21)
81List<ILogger> loggers = new List<ILogger>(); 134List<ILogger> loggers = new List<ILogger>(); 175Loggers = new ILogger[] { logger }, 240List<ILogger> loggers = new List<ILogger>(); 293List<ILogger> loggers = new List<ILogger>(); 364List<ILogger> loggers = new List<ILogger>(); 414List<ILogger> loggers = new List<ILogger>(); 480List<ILogger> loggers = new List<ILogger>(); 504List<ILogger> loggers = new List<ILogger>(); 535List<ILogger> loggers = new List<ILogger>(); 566List<ILogger> loggers = new List<ILogger>();
BinaryLogger_Tests.cs (3)
125project.Build(new ILogger[] { binaryLogger, mockLogFromBuild, serialFromBuild, parallelFromBuild }).ShouldBeTrue(); 223project.Build(new ILogger[] { binaryLogger }).ShouldBeTrue(); 597buildManager.Build(new BuildParameters() { Loggers = new ILogger[] { binaryLogger } },
ConsoleLogger_Tests.cs (2)
158List<ILogger> loggerList = new List<ILogger>();
Construction\SolutionFilter_Tests.cs (1)
146instances[0].Build(targets: null, new List<ILogger> { logger }).ShouldBeTrue();
Construction\SolutionProjectGenerator_Tests.cs (13)
82instances[0].Build(targets: null, new List<ILogger> { logger }).ShouldBeTrue(); 634List<ILogger> loggers = new List<ILogger>(1); 656List<ILogger> loggers1 = new List<ILogger>(1); 724List<ILogger> loggers = new List<ILogger>(1); 1043var loggers = new List<ILogger>(1) { logger }; 1769bool success = msbuildProject.Build("GetFrameworkPathAndRedistList", new ILogger[] { logger }); 2042Assert.True(msbuildProject.Build(new ILogger[] { logger })); 2122parameters.Loggers = new ILogger[] { logger }; 2210parameters.Loggers = new ILogger[] { logger }; 2618projectInstance.Build(targetsToBuild, new List<ILogger> { mockLogger })
Definition\ItemDefinitionGroup_Tests.cs (34)
349p.Build(new string[] { "Build" }, new ILogger[] { logger }); 379p.Build(new string[] { "Build" }, new ILogger[] { logger }); 411p.Build(new string[] { "Build" }, new ILogger[] { logger }); 721p.Build("t", new ILogger[] { logger }); 746p.Build("t", new ILogger[] { logger }); 772p.Build("t", new ILogger[] { logger }); 804p.Build("t", new ILogger[] { logger }); 825p.Build("t", new ILogger[] { logger }); 840p.Build("t", new ILogger[] { logger }); 856p.Build("t", new ILogger[] { logger }); 893p.Build("t", new ILogger[] { logger }); 923p.Build("t", new ILogger[] { logger }); 953p.Build("t", new ILogger[] { logger }); 984p.Build("t", new ILogger[] { logger }); 1015p.Build("t", new ILogger[] { logger }); 1045p.Build("t", new ILogger[] { logger }); 1069bool result = p.Build("t", new ILogger[] { logger }); 1115p.Build("t", new ILogger[] { logger }); 1143p.Build("t", new ILogger[] { logger }); 1173p.Build("t", new ILogger[] { logger }); 1203p.Build("t", new ILogger[] { logger }); 1238p.Build("t", new ILogger[] { logger }); 1324p.Build("t", new ILogger[] { logger }); 1353p.Build("t", new ILogger[] { logger }); 1386p.Build("t", new ILogger[] { logger }); 1420p.Build("t", new ILogger[] { logger }); 1464p.Build("t", new ILogger[] { logger }); 1614p.Build("t", new ILogger[] { logger }); 1646p.Build("t", new ILogger[] { logger }); 1673p.Build("t", new ILogger[] { logger }); 1701p.Build("t", new ILogger[] { logger }); 1733p.Build("t", new ILogger[] { logger }); 1792p.Build("t", new ILogger[] { logger }); 1844p.Build("t", new ILogger[] { logger });
Definition\ToolsVersion_Tests.cs (4)
638success = pi.Build(new ILogger[] { mockLogger }); 709success = pi.Build(new ILogger[] { mockLogger }); 794success = pi.Build(new ILogger[] { mockLogger }); 904success = pi.Build(new ILogger[] { mockLogger });
Evaluation\Evaluator_Tests.cs (9)
452bool result = project.Build(new ILogger[] { logger }); 1156bool result = project.Build("t2", new ILogger[] { logger }); 2309List<ILogger> loggerList = new List<ILogger>(); 2334List<ILogger> loggerList = new List<ILogger>(); 2358List<ILogger> loggerList = new List<ILogger>(); 4696globalProperties, new List<ILogger> { logger }, ToolsetDefinitionLocations.Default);
EvaluationProfiler_Tests.cs (1)
273Loggers = new ILogger[] { profilerLogger },
Instance\ProjectInstance_Internal_Tests.cs (2)
582List<ILogger> loggers = new List<ILogger>();
Instance\TaskItem_Tests.cs (3)
282project.Build("Build", new ILogger[] { logger }).ShouldBeTrue(); 336project.Build("Build", new ILogger[] { logger }).ShouldBeTrue(); 371project.Build("Build", new ILogger[] { logger }).ShouldBeTrue();
Microsoft.Build.Tasks.CodeAnalysis.UnitTests (2)
TargetTests.cs (2)
970private static ILogger[] GetTestLoggers([CallerMemberName] string callerName = "") 981return Array.Empty<ILogger>();
Microsoft.Build.Tasks.UnitTests (11)
CreateItem_Tests.cs (1)
214Loggers = new ILogger[] { new MockLogger(_testOutput) },
ResolveSDKReference_Tests.cs (10)
3817bool success = project.Build(new string[] { "GetResolvedSDKReferences" }, new ILogger[] { logger }, out targetResults); 3826success = project.Build(new string[] { "SDKRedistOutputGroup" }, new ILogger[] { logger }, out targetResults); 3960bool success = project.Build(new string[] { "GetResolvedSDKReferences" }, new ILogger[] { logger }, out targetResults); 3969success = project.Build(new string[] { "SDKRedistOutputGroup" }, new ILogger[] { logger }, out targetResults); 4069bool success = project.Build(new string[] { "GetResolvedSDKReferences" }, new ILogger[] { logger }, out targetResults); 4078success = project.Build(new string[] { "SDKRedistOutputGroup" }, new ILogger[] { logger }, out targetResults); 4166bool success = project.Build(new string[] { "GetResolvedSDKReferences" }, new ILogger[] { logger }, out targetResults); 4177success = project.Build(new string[] { "SDKRedistOutputGroup" }, new ILogger[] { logger }, out targetResults); 4327private ITaskItem[] RunBuildAndReturnResolvedSDKReferences(ILogger logger, string testProjectFile, string testDirectoryRoot) 4335bool success = project.Build(new string[] { "GetResolvedSDKReferences" }, new ILogger[] { logger }, out targetResults);
Microsoft.Build.UnitTests.Shared (23)
EngineTestEnvironment.cs (7)
152private IEnumerable<(ILogger logger, Func<string> textGetter)> GetLoggers() 154var result = new List<(ILogger logger, Func<string> textGetter)>(); 168private (ILogger logger, Func<string> textGetter) GetMockLogger() 194private (ILogger, Func<string>) GetBinaryLogger() 246private static void PlaybackBinlog(string binlogFilePath, params ILogger[] loggers) 250foreach (var logger in loggers) 264foreach (var logger in loggers)
MockEngine.cs (2)
249ILogger[] loggers = { MockLogger, new ConsoleLogger() }; 294ILogger[] loggers = { MockLogger, new ConsoleLogger() };
ObjectModelHelpers.cs (14)
690public static Project CreateInMemoryProject(string xml, params ILogger[] loggers) 704public static Project CreateInMemoryProject(ProjectCollection projectCollection, string xml, params ILogger[] loggers) 721params ILogger[] loggers) 726foreach (ILogger logger in loggers) 772params ILogger[] loggers) 800params ILogger[] loggers) 1010ILogger logger) 1013List<ILogger> loggers = new List<ILogger>(1); 1365List<ILogger> loggers = new List<ILogger>(); 1378List<ILogger> loggers = new List<ILogger>() { binaryLogger }; 1488Loggers = new ILogger[] { mockLogger },
Microsoft.Build.Utilities.Core (5)
MuxLogger.cs (5)
228public void RegisterLogger(int submissionId, ILogger logger) 350private readonly List<ILogger> _loggers; 473_loggers = new List<ILogger>(); 561internal void AddLogger(ILogger logger) 599foreach (ILogger logger in _loggers)
Microsoft.Build.Utilities.UnitTests (8)
MuxLogger_Tests.cs (8)
34parameters.Loggers = new ILogger[] { muxLogger }; 59parameters.Loggers = new ILogger[] { muxLogger }; 99parameters.Loggers = new ILogger[] { mockLogger2 }; 109parameters.Loggers = new ILogger[] { muxLogger }; 154parameters.Loggers = new ILogger[] { muxLogger }; 208parameters.Loggers = new ILogger[] { muxLogger }; 263parameters.Loggers = new ILogger[] { muxLogger }; 313parameters.Loggers = new ILogger[] { muxLogger, new EventingLogger(projectStartedEvent) };
Microsoft.CodeAnalysis.Workspaces.MSBuild (8)
MSBuild\MSBuildProjectLoader.cs (4)
155/// <param name="msbuildLogger">An optional <see cref="ILogger"/> that will log MSBuild results.</param> 161ILogger? msbuildLogger = null, 253/// <param name="msbuildLogger">An optional <see cref="ILogger"/> that will log msbuild results.</param> 260ILogger? msbuildLogger = null,
MSBuild\MSBuildWorkspace.cs (4)
187/// <param name="msbuildLogger">An optional <see cref="ILogger"/> that will log msbuild results.</param> 193ILogger? msbuildLogger, 235/// <param name="msbuildLogger">An optional <see cref="ILogger"/> that will log msbuild results..</param> 241ILogger? msbuildLogger,
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (4)
Build\ProjectBuildManager.cs (4)
60private readonly ILogger? _msbuildLogger; 72public ProjectBuildManager(ImmutableDictionary<string, string> additionalGlobalProperties, ILogger? msbuildLogger = null) 140_msbuildLogger != null ? [_msbuildLogger] : ImmutableArray<MSB.Framework.ILogger>.Empty, 188: ImmutableArray<MSB.Framework.ILogger>.Empty;
MSBuild (26)
DistributedLoggerRecord.cs (3)
20internal DistributedLoggerRecord(ILogger centralLogger, LoggerDescription forwardingLoggerDescription) 31internal ILogger CentralLogger 53private ILogger _centralLogger;
XMake.cs (23)
702ILogger[] loggers = Array.Empty<ILogger>(); 1106private static ExitType OutputBuildInformationInJson(BuildResult result, string[] getProperty, string[] getItem, string[] getTargetResult, ILogger[] loggers, ExitType exitType, TextWriter outputStream) 1110ILogger logger = loggers.FirstOrDefault(l => l is SimpleErrorLogger); 1267ILogger[] loggers, 1354foreach (var logger in loggers) 2481ref ILogger[] loggers, 3328internal static ProfilerLogger ProcessProfileEvaluationSwitch(string[] parameters, List<ILogger> loggers, out bool enableProfiler) 3785private static ILogger[] ProcessLoggingSwitches( 3816var loggers = new List<ILogger>(); 3888private static void ProcessFileLoggers(string[][] groupedFileLoggerParameters, List<DistributedLoggerRecord> distributedLoggerRecords, int cpuCount, List<ILogger> loggers) 3943private static void ProcessBinaryLogger(string[] binaryLoggerParameters, List<ILogger> loggers, ref LoggerVerbosity verbosity) 3971List<ILogger> loggers) 4018List<ILogger> loggers) 4048private static DistributedLoggerRecord CreateForwardingLoggerRecord(ILogger logger, string loggerParameters, LoggerVerbosity defaultVerbosity) 4229private static void ProcessLoggerSwitch(string[] parameters, List<ILogger> loggers, LoggerVerbosity verbosity) 4237if (CreateAndConfigureLogger(loggerDescription, verbosity, unquotedParameter, out ILogger logger)) 4264if (!CreateAndConfigureLogger(centralLoggerDescription, verbosity, unquotedParameter, out ILogger centralLogger)) 4380out ILogger logger) 4447ILogger[] loggers, 4461ILogger centralLogger = distributedLoggerRecord.CentralLogger; 4472foreach (var logger in loggers) 4494foreach (var logger in loggers)