Пример #1
0
        public Program()
        {
            _loggerFactory = new LoggerFactory();

            var commandProvider = new CommandOutputProvider();

            _loggerFactory.AddProvider(commandProvider);
        }
Пример #2
0
        public Program()
        {
            _loggerFactory = new LoggerFactory();

            var commandProvider = new CommandOutputProvider(PlatformServices.Default.Runtime);

            _loggerFactory.AddProvider(commandProvider);
        }
Пример #3
0
 public CommandOutputLogger(CommandOutputProvider commandOutputProvider, string loggerName, bool useConsoleColor)
 {
     _provider   = commandOutputProvider;
     _outConsole = AnsiConsole.GetOutput(useConsoleColor);
     _loggerName = loggerName;
 }