예제 #1
0
 public static ILoggingBuilder AddColorConsoleLogger(
     this ILoggingBuilder builder,
     ColorConsoleLoggerConfiguration config)
 {
     builder.AddProvider(new ColorConsoleLoggerProvider(config));
     return(builder);
 }
예제 #2
0
        public static ILoggingBuilder AddColorConsoleLogger(
            this ILoggingBuilder builder,
            Action <ColorConsoleLoggerConfiguration> configure)
        {
            var config = new ColorConsoleLoggerConfiguration();

            configure(config);

            return(builder.AddColorConsoleLogger(config));
        }
예제 #3
0
 public ColorConsoleLogger(
     string name,
     ColorConsoleLoggerConfiguration config) =>
 (_name, _config) = (name, config);
 public ColorConsoleLoggerProvider(ColorConsoleLoggerConfiguration config) =>