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

            configure(config);

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