public static ILoggerFactory AddColoredConsoleLogger(this ILoggerFactory loggerFactory, Action <ColoredConsoleLoggerConfiguration> configure) { var config = new ColoredConsoleLoggerConfiguration(); configure(config); return(loggerFactory.AddColoredConsoleLogger(config)); }
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); }
public ColoredConsoleLoggerProvider(ColoredConsoleLoggerConfiguration config) { _config = config; }