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

            configure(config);
            return(loggerFactory.AddColoredConsoleLogger(config));
        }
Exemplo n.º 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);
 }
Exemplo n.º 4
0
 public ColoredConsoleLoggerProvider(ColoredConsoleLoggerConfiguration config)
 {
     _config = config;
 }