Exemplo n.º 1
0
        public Program()
        {
            _loggerFactory = new LoggerFactory();

            var commandProvider = new CommandOutputProvider();

            _loggerFactory.AddProvider(commandProvider);
        }
Exemplo n.º 2
0
        public Program()
        {
            _loggerFactory = new LoggerFactory();

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

            _loggerFactory.AddProvider(commandProvider);
        }
Exemplo n.º 3
0
 public CommandOutputLogger(CommandOutputProvider commandOutputProvider, string loggerName, bool useConsoleColor)
 {
     _provider   = commandOutputProvider;
     _outConsole = AnsiConsole.GetOutput(useConsoleColor);
     _loggerName = loggerName;
 }