1 implementation of ILoggerWithColor
NuGet.CommandLine.XPlat (1)
Utility\CommandOutputLogger.cs (1)
17internal class CommandOutputLogger : LoggerBase, ILoggerWithColor
53 references to ILoggerWithColor
NuGet.CommandLine.XPlat (53)
Commands\ConfigCommands\ConfigCommand.cs (1)
32internal static Command Register(Command app, Func<ILoggerWithColor> getLogger)
Commands\DeleteCommand.cs (1)
17internal static void Register(Command parent, Func<ILoggerWithColor> getLogger)
Commands\LocalsCommand.cs (2)
17internal static void Register(Command parent, Func<ILoggerWithColor> getLogger) 45var logger = getLogger();
Commands\NuGet\Add\DotnetNuGetAddCommand.cs (3)
13internal static void Register(Command parent, Func<ILoggerWithColor> getLogger) 23private static void RegisterAddSource(Command parent, Func<ILoggerWithColor> getLogger) 69private static void RegisterAddClientCert(Command parent, Func<ILoggerWithColor> getLogger)
Commands\NuGet\Disable\DotnetNuGetDisableCommand.cs (1)
13internal static void Register(Command parent, Func<ILoggerWithColor> getLogger)
Commands\NuGet\Enable\DotnetNuGetEnableCommand.cs (1)
13internal static void Register(Command parent, Func<ILoggerWithColor> getLogger)
Commands\NuGet\List\DotnetNuGetListCommand.cs (3)
13internal static void Register(Command parent, Func<ILoggerWithColor> getLogger) 23private static void RegisterListSource(Command parent, Func<ILoggerWithColor> getLogger) 48private static void RegisterListClientCert(Command parent, Func<ILoggerWithColor> getLogger)
Commands\NuGet\Remove\DotnetNuGetRemoveCommand.cs (3)
13internal static void Register(Command parent, Func<ILoggerWithColor> getLogger) 23private static void RegisterRemoveSource(Command parent, Func<ILoggerWithColor> getLogger) 48private static void RegisterRemoveClientCert(Command parent, Func<ILoggerWithColor> getLogger)
Commands\NuGet\Update\DotnetNuGetUpdateCommand.cs (3)
13internal static void Register(Command parent, Func<ILoggerWithColor> getLogger) 23private static void RegisterUpdateSource(Command parent, Func<ILoggerWithColor> getLogger) 69private static void RegisterUpdateClientCert(Command parent, Func<ILoggerWithColor> getLogger)
Commands\Package\Download\PackageDownloadRunner.cs (5)
35ILoggerWithColor logger = new CommandOutputLogger(args.LogLevel) 51public static async Task<int> RunAsync(PackageDownloadArgs args, ILoggerWithColor logger, IReadOnlyList<PackageSource> packageSources, ISettings settings, CancellationToken token) 186ILoggerWithColor logger, 252ILoggerWithColor logger) 361ILoggerWithColor logger)
Commands\Package\Update\PackageUpdateCommandRunner.cs (8)
31ILoggerWithColor logger = new CommandOutputLogger(args.LogLevel) 49internal static async Task<int> Run(PackageUpdateArgs args, ILoggerWithColor logger, IPackageUpdateIO packageUpdateIO, CancellationToken cancellationToken) 131ILoggerWithColor logger, 249ILoggerWithColor logger, 394ILoggerWithColor logger, 489GetReferencedVersion(string packageId, PackageSpec project, ILoggerWithColor logger) 552ILoggerWithColor logger, 612private static List<(PackageWithVersionRange identity, List<string> tfms)>? GetAllPackagesReferencedByProject(PackageSpec project, ILoggerWithColor logger)
Commands\PackageReferenceCommands\AddPackageReferenceCommand.cs (2)
17internal static void Register(Command parent, Func<ILoggerWithColor> getLogger, 112var logger = getLogger();
Commands\PackageReferenceCommands\ListPackage\ListPackageCommand.cs (2)
25Func<ILoggerWithColor> getLogger, 146var logger = getLogger();
Commands\PackageReferenceCommands\RemovePackageReferenceCommand.cs (2)
16internal static void Register(Command parent, Func<ILoggerWithColor> getLogger, 54var logger = getLogger();
Commands\PackageSearch\PackageSearchArgs.cs (1)
23public ILoggerWithColor Logger { get; set; }
Commands\PackageSearch\PackageSearchCommand.cs (3)
20public static void Register(Command rootCommand, Func<ILoggerWithColor> getLogger) 25public static void Register(Command rootCommand, Func<ILoggerWithColor> getLogger, Func<PackageSearchArgs, string, CancellationToken, Task<int>> setupSettingsAndRunSearchAsync) 102ILoggerWithColor logger = getLogger();
Commands\PackageSearch\PackageSearchResultJsonRenderer.cs (2)
16private ILoggerWithColor _logger; 21public PackageSearchResultJsonRenderer(ILoggerWithColor loggerWithColor, PackageSearchVerbosity verbosity, bool exactMatch)
Commands\PackageSearch\PackageSearchResultTableRenderer.cs (2)
18private ILoggerWithColor _loggerWithColor; 25public PackageSearchResultTableRenderer(string searchTerm, ILoggerWithColor loggerWithColor, PackageSearchVerbosity verbosity, bool exactMatch, int consoleWidth)
Commands\PackageSearch\Table.cs (2)
79public void PrintResult(string highlightTerm, ILoggerWithColor logger) 112private void PrintRow(ILoggerWithColor logger, List<string> values, string highlightTerm)
Commands\PushCommand.cs (1)
17internal static void Register(Command parent, Func<ILoggerWithColor> getLogger)
Commands\Signing\SignCommand.cs (1)
25Func<ILoggerWithColor> getLogger,
Commands\Signing\TrustedSignersCommand.cs (2)
21Func<ILoggerWithColor> getLogger, 192Func<ILoggerWithColor> getLogger,
Commands\Signing\VerifyCommand.cs (1)
22Func<ILoggerWithColor> getLogger,
Program.cs (1)
91Func<ILoggerWithColor> getHidePrefixLogger = () =>