Exemple #1
0
        public static ILoggingBuilder AddInlineSpectreConsole(this ILoggingBuilder loggingBuilder, Action <SpectreConsoleLoggerConfiguration> configure)
        {
            var config = new SpectreConsoleLoggerConfiguration();

            configure(config);
            return(loggingBuilder.AddInlineSpectreConsole(config));
        }
Exemple #2
0
 public static ILoggingBuilder AddSpectreConsole(this ILoggingBuilder loggingBuilder, SpectreConsoleLoggerConfiguration config = null)
 {
     loggingBuilder.AddProvider(new SpectreConsoleLoggerProvider(config ?? new SpectreConsoleLoggerConfiguration()));
     return(loggingBuilder);
 }