public static ILoggerFactory AddColoredConsoleLogger(this ILoggerFactory loggerFactory, Action <ColoredConsoleLoggerConfiguration> configure)
        {
            var config = new ColoredConsoleLoggerConfiguration();

            configure(config);
            return(loggerFactory.AddColoredConsoleLogger(config));
        }
예제 #2
0
 public ColoredConsoleLogger(string name, ColoredConsoleLoggerConfiguration config)
 {
     this._name   = name;
     this._config = config;
 }
 public static ILoggerFactory AddColoredConsoleLogger(this ILoggerFactory loggerFactory, ColoredConsoleLoggerConfiguration config)
 {
     loggerFactory.AddProvider(new ColoredConsoleLoggerProvider(config));
     return(loggerFactory);
 }
예제 #4
0
 public ColoredConsoleLoggerProvider(ColoredConsoleLoggerConfiguration config)
 {
     _config = config;
 }