Exemplo n.º 1
0
        private static ILogger GetLogger(OptionsBase opts)
        {
            var loggerConfiguration = new SimpleConsoleLoggerConfiguration(
                minimumLogLevel: opts.Verbose ? LogLevel.Debug : LogLevel.Information,
                showCategoryName: false,
                enabledColoredOutput: true);

            return(new SimpleConsoleLogger(loggerConfiguration, ""));
        }
Exemplo n.º 2
0
 private static ConfigurationProvider GetConfigurationProvider(OptionsBase commandlineParameters) =>
 new ConfigurationProvider(commandlineParameters.ConfigurationFilePath ?? "", commandlineParameters);