1 interface inheriting from ILogger
Microsoft.Build.Framework (1)
12 implementations of ILogger
Microsoft.Build (4)
Microsoft.Build.Engine.UnitTests (3)
Microsoft.Build.UnitTests.Shared (1)
Microsoft.Build.Utilities.Core (1)
Microsoft.Build.Utilities.UnitTests (1)
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (1)
Microsoft.DotNet.ArcadeLogging (1)
402 references to ILogger
Microsoft.Build (72)
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<ILogger>, IEnumerable<ForwardingLoggerRecord>)"/>.
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)
Microsoft.Build.CommandLine.UnitTests (15)
Microsoft.Build.Engine.OM.UnitTests (17)
Microsoft.Build.Engine.UnitTests (211)
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\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\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 });
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 });
Microsoft.Build.Tasks.CodeAnalysis.UnitTests (2)
Microsoft.Build.Tasks.UnitTests (11)
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)
Microsoft.Build.Utilities.Core (5)
Microsoft.Build.Utilities.UnitTests (8)
Microsoft.CodeAnalysis.Workspaces.MSBuild (8)
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (4)
MSBuild (26)
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)