Exemple #1
0
        public static ILoggingBuilder AddColorConsoleLogger(this ILoggingBuilder builder, Action <ColorConsoleLoggerConfiguration> configure)
        {
            var config = new ColorConsoleLoggerConfiguration();

            configure(config);

            return(builder.AddColorConsoleLogger(config));
        }
Exemple #2
0
 public ColorConsoleLoggerProvider(ColorConsoleLoggerConfiguration config) =>
Exemple #3
0
 public static ILoggingBuilder AddColorConsoleLogger(this ILoggingBuilder builder, ColorConsoleLoggerConfiguration config)
 {
     builder.AddProvider(new ColorConsoleLoggerProvider(config));
     return(builder);
 }
Exemple #4
0
 public ColorConsoleLogger(
     string name,
     ColorConsoleLoggerConfiguration config) =>
 (_name, _config) = (name, config);