Beispiel #1
0
        public Program(IRuntimeEnvironment runtimeEnvironment)
        {
            _loggerFactory = new LoggerFactory();

            var commandProvider = new CommandOutputProvider(runtimeEnvironment);
            _loggerFactory.AddProvider(commandProvider);
        }
Beispiel #2
0
        public Program()
        {
            _loggerFactory = new LoggerFactory();

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

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