1 interface inheriting from ILogger
Microsoft.Build.Framework (1)
10 implementations of ILogger
dotnet (1)
Microsoft.Build (5)
Microsoft.Build.Utilities.Core (1)
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (1)
Microsoft.DotNet.ArcadeLogging (1)
NuGet.Build.Tasks.Console (1)
163 references to ILogger
dotnet (8)
dotnet-format (1)
Microsoft.Build (93)
Definition\Project.cs (11)
1525public bool Build(ILogger logger)
1527var loggers = new List<ILogger>(1) { logger };
1541public bool Build(IEnumerable<ILogger> loggers)
1557public bool Build(IEnumerable<ILogger> loggers, IEnumerable<ForwardingLoggerRecord> remoteLoggers)
1588public bool Build(string target, IEnumerable<ILogger> loggers)
1605public bool Build(string target, IEnumerable<ILogger> loggers, IEnumerable<ForwardingLoggerRecord> remoteLoggers)
1640public bool Build(string[] targets, IEnumerable<ILogger> loggers)
1658public bool Build(string[] targets, IEnumerable<ILogger> loggers, IEnumerable<ForwardingLoggerRecord> remoteLoggers)
1664/// See <see cref="Build(string[], IEnumerable<ILogger>, IEnumerable<ForwardingLoggerRecord>)"/>.
1672public bool Build(string[] targets, IEnumerable<ILogger> loggers, IEnumerable<ForwardingLoggerRecord> remoteLoggers, EvaluationContext evaluationContext)
3380public override bool Build(string[] targets, IEnumerable<ILogger> loggers, IEnumerable<ForwardingLoggerRecord> remoteLoggers, EvaluationContext evaluationContext)
Definition\ProjectCollection.cs (15)
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)
363private ProjectCollection(IDictionary<string, string> globalProperties, IEnumerable<ILogger> loggers, ToolsetDefinitionLocations toolsetDefinitionLocations, int maxNodeCount, bool onlyLogCriticalEvents, bool loadProjectsReadOnly, bool useAsynchronousLogging, bool reuseProjectRootElementCache, bool enableTargetOutputLogging)
674public ICollection<ILogger> Loggers
682? (ICollection<ILogger>)ReadOnlyEmptyCollection<ILogger>.Instance
683: new List<ILogger>(_loggingService.Loggers);
1373public void RegisterLogger(ILogger logger)
1388public void RegisterLoggers(IEnumerable<ILogger> loggers)
1395foreach (ILogger logger in loggers)
1781private 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 (10)
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (3)
Microsoft.DotNet.HotReload.Utils.Generator (1)
Microsoft.DotNet.HotReload.Watch (3)
MSBuild (28)
XMake.cs (24)
893ILogger[] loggers = Array.Empty<ILogger>();
1392private static ExitType OutputBuildInformationInJson(BuildResult result, string[] getProperty, string[] getItem, string[] getTargetResult, ILogger[] loggers, ExitType exitType, TextWriter outputStream)
1396ILogger logger = loggers.FirstOrDefault(l => l is SimpleErrorLogger);
1546ILogger[] loggers,
1628foreach (var logger in loggers)
1659ILogger[] evaluationLoggers =
2386ref ILogger[] loggers,
3266internal static ProfilerLogger ProcessProfileEvaluationSwitch(string[] parameters, List<ILogger> loggers, out bool enableProfiler)
3700private static ILogger[] ProcessLoggingSwitches(
3742var loggers = new List<ILogger>();
3820private static void ProcessFileLoggers(string[][] groupedFileLoggerParameters, List<DistributedLoggerRecord> distributedLoggerRecords, int cpuCount, List<ILogger> loggers)
3875private static void ProcessBinaryLogger(string[] binaryLoggerParameters, List<ILogger> loggers, ref LoggerVerbosity verbosity)
3927List<ILogger> loggers)
3974List<ILogger> loggers)
4020private static DistributedLoggerRecord CreateForwardingLoggerRecord(ILogger logger, string loggerParameters, LoggerVerbosity defaultVerbosity)
4201private static void ProcessLoggerSwitch(string[] parameters, List<ILogger> loggers, LoggerVerbosity verbosity)
4209if (CreateAndConfigureLogger(loggerDescription, verbosity, unquotedParameter, out ILogger logger))
4235if (!CreateAndConfigureLogger(centralLoggerDescription, verbosity, unquotedParameter, out ILogger centralLogger))
4350out ILogger logger)
4416ILogger[] loggers,
4435ILogger centralLogger = distributedLoggerRecord.CentralLogger;
4446foreach (var logger in loggers)
4473foreach (var logger in loggers)
NuGet.Build.Tasks.Console (9)
NuGet.CommandLine.XPlat (1)