1 interface inheriting from ILogger
Microsoft.Build.Framework (1)
11 implementations of ILogger
dotnet-aot (1)
Microsoft.Build (5)
Microsoft.Build.Utilities.Core (1)
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (1)
Microsoft.DotNet.ArcadeLogging (1)
Microsoft.NET.ProjectData.Tasks (1)
NuGet.Build.Tasks.Console (1)
159 references to ILogger
dotnet-format (1)
Microsoft.Build (97)
Definition\Project.cs (11)
1514public bool Build(ILogger logger)
1516var loggers = new List<ILogger>(1) { logger };
1530public bool Build(IEnumerable<ILogger> loggers)
1546public bool Build(IEnumerable<ILogger> loggers, IEnumerable<ForwardingLoggerRecord> remoteLoggers)
1577public bool Build(string target, IEnumerable<ILogger> loggers)
1594public bool Build(string target, IEnumerable<ILogger> loggers, IEnumerable<ForwardingLoggerRecord> remoteLoggers)
1629public bool Build(string[] targets, IEnumerable<ILogger> loggers)
1647public bool Build(string[] targets, IEnumerable<ILogger> loggers, IEnumerable<ForwardingLoggerRecord> remoteLoggers)
1653/// See <see cref="Build(string[], IEnumerable<ILogger>, IEnumerable<ForwardingLoggerRecord>)"/>.
1661public bool Build(string[] targets, IEnumerable<ILogger> loggers, IEnumerable<ForwardingLoggerRecord> remoteLoggers, EvaluationContext evaluationContext)
3211public override bool Build(string[] targets, IEnumerable<ILogger> loggers, IEnumerable<ForwardingLoggerRecord> remoteLoggers, EvaluationContext evaluationContext)
Definition\ProjectCollection.cs (16)
253public ProjectCollection(IDictionary<string, string> globalProperties, IEnumerable<ILogger> loggers, ToolsetDefinitionLocations toolsetDefinitionLocations)
272public ProjectCollection(IDictionary<string, string> globalProperties, IEnumerable<ILogger> loggers, IEnumerable<ForwardingLoggerRecord> remoteLoggers, ToolsetDefinitionLocations toolsetDefinitionLocations, int maxNodeCount, bool onlyLogCriticalEvents)
292public ProjectCollection(IDictionary<string, string> globalProperties, IEnumerable<ILogger> loggers, IEnumerable<ForwardingLoggerRecord> remoteLoggers, ToolsetDefinitionLocations toolsetDefinitionLocations, int maxNodeCount, bool onlyLogCriticalEvents, bool loadProjectsReadOnly)
314/// This constructor disables target output logging, so TerminalLogger and other loggers may not work well. Prefer <see cref="ProjectCollection(IDictionary{string, string}, IEnumerable{ILogger}, IEnumerable{ForwardingLoggerRecord}, ToolsetDefinitionLocations, int, bool, bool, bool, bool, bool)"/> instead to control this behavior.
317public ProjectCollection(IDictionary<string, string> globalProperties, IEnumerable<ILogger> loggers, IEnumerable<ForwardingLoggerRecord> remoteLoggers, ToolsetDefinitionLocations toolsetDefinitionLocations, int maxNodeCount, bool onlyLogCriticalEvents, bool loadProjectsReadOnly, bool useAsynchronousLogging, bool reuseProjectRootElementCache) :
340public ProjectCollection(IDictionary<string, string> globalProperties, IEnumerable<ILogger> loggers, IEnumerable<ForwardingLoggerRecord> remoteLoggers, ToolsetDefinitionLocations toolsetDefinitionLocations, int maxNodeCount, bool onlyLogCriticalEvents, bool loadProjectsReadOnly, bool useAsynchronousLogging, bool reuseProjectRootElementCache, bool enableTargetOutputLogging)
359public ProjectCollection(IDictionary<string, string> globalProperties, IEnumerable<ILogger> loggers, IEnumerable<ForwardingLoggerRecord> remoteLoggers, ToolsetDefinitionLocations toolsetDefinitionLocations, int maxNodeCount, bool onlyLogCriticalEvents, bool loadProjectsReadOnly, bool useAsynchronousLogging, bool reuseProjectRootElementCache, bool enableTargetOutputLogging, string parseConfigDirectory)
378private ProjectCollection(IDictionary<string, string> globalProperties, IEnumerable<ILogger> loggers, ToolsetDefinitionLocations toolsetDefinitionLocations, int maxNodeCount, bool onlyLogCriticalEvents, bool loadProjectsReadOnly, bool useAsynchronousLogging, bool reuseProjectRootElementCache, bool enableTargetOutputLogging, string parseConfigDirectory)
718public ICollection<ILogger> Loggers
726? (ICollection<ILogger>)ReadOnlyEmptyCollection<ILogger>.Instance
727: new List<ILogger>(_loggingService.Loggers);
1417public void RegisterLogger(ILogger logger)
1432public void RegisterLoggers(IEnumerable<ILogger> loggers)
1439foreach (ILogger logger in loggers)
1825private void RegisterLoggerInternal(ILogger logger)
Instance\ProjectInstance.cs (12)
2252public bool Build(IEnumerable<ILogger> loggers)
2268public bool Build(IEnumerable<ILogger> loggers, IEnumerable<ForwardingLoggerRecord> remoteLoggers)
2285public bool Build(string target, IEnumerable<ILogger> loggers)
2303public bool Build(string target, IEnumerable<ILogger> loggers, IEnumerable<ForwardingLoggerRecord> remoteLoggers)
2322public bool Build(string[] targets, IEnumerable<ILogger> loggers)
2340public bool Build(string[] targets, IEnumerable<ILogger> loggers, IEnumerable<ForwardingLoggerRecord> remoteLoggers)
2359public bool Build(string[] targets, IEnumerable<ILogger> loggers, out IDictionary<string, TargetResult> targetOutputs)
2377public bool Build(string[] targets, IEnumerable<ILogger> loggers, IEnumerable<ForwardingLoggerRecord> remoteLoggers, out IDictionary<string, TargetResult> targetOutputs)
2846internal bool Build(string[] targets, IEnumerable<ILogger> loggers, IEnumerable<ForwardingLoggerRecord> remoteLoggers, ILoggingService loggingService, int maxNodeCount, out IDictionary<string, TargetResult> targetOutputs)
2864parameters.Loggers = (loggers is ICollection<ILogger> loggersCollection) ? loggersCollection : new List<ILogger>(loggers);
2902internal bool Build(string[] targets, IEnumerable<ILogger> loggers, IEnumerable<ForwardingLoggerRecord> remoteLoggers, ILoggingService loggingService, out IDictionary<string, TargetResult> targetOutputs)
Microsoft.Build.Framework (1)
Microsoft.Build.Utilities.Core (5)
Microsoft.CodeAnalysis.Workspaces.MSBuild (11)
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (3)
Microsoft.DotNet.HotReload.Utils.Generator (1)
Microsoft.DotNet.HotReload.Watch (3)
MSBuild (32)
XMake.cs (25)
958ILogger[] loggers = Array.Empty<ILogger>();
1094ILogger[] replayLoggers = distributedLoggerRecords
1471private static ExitType OutputBuildInformationInJson(BuildResult result, string[] getProperty, string[] getItem, string[] getTargetResult, ILogger[] loggers, ExitType exitType, TextWriter outputStream)
1475ILogger logger = loggers.FirstOrDefault(l => l is SimpleErrorLogger);
1655ILogger[] loggers,
1743foreach (var logger in loggers)
1774ILogger[] evaluationLoggers =
2502ref ILogger[] loggers,
3404internal static ProfilerLogger ProcessProfileEvaluationSwitch(string[] parameters, List<ILogger> loggers, out bool enableProfiler)
3884private static ILogger[] ProcessLoggingSwitches(
3927var loggers = new List<ILogger>();
4010private static void ProcessFileLoggers(string[][] groupedFileLoggerParameters, List<DistributedLoggerRecord> distributedLoggerRecords, int cpuCount, List<ILogger> loggers)
4065private static void ProcessBinaryLogger(string[] binaryLoggerParameters, List<ILogger> loggers, ref LoggerVerbosity verbosity, bool disableCopies)
4117List<ILogger> loggers)
4164List<ILogger> loggers)
4210private static DistributedLoggerRecord CreateForwardingLoggerRecord(ILogger logger, string loggerParameters, LoggerVerbosity defaultVerbosity)
4391private static void ProcessLoggerSwitch(string[] parameters, List<ILogger> loggers, LoggerVerbosity verbosity)
4399if (CreateAndConfigureLogger(loggerDescription, verbosity, unquotedParameter, out ILogger logger))
4425if (!CreateAndConfigureLogger(centralLoggerDescription, verbosity, unquotedParameter, out ILogger centralLogger))
4540out ILogger logger)
4606ILogger[] loggers,
4625ILogger centralLogger = distributedLoggerRecord.CentralLogger;
4636foreach (var logger in loggers)
4663foreach (var logger in loggers)
NuGet.Build.Tasks.Console (4)
NuGet.CommandLine.XPlat (1)