public static ILoggerFactory AddConsoleLogger(this ILoggerFactory loggerFactory, Action <ConsoleLoggerConfiguration> configure) { var config = new ConsoleLoggerConfiguration(); configure(config); return(loggerFactory.AddConsoleLogger(config)); }
public ConsoleLoggerProvider(ConsoleLoggerConfiguration config) { _config = config; }
public ConsoleLogger(string name, ConsoleLoggerConfiguration config) { _name = name; _config = config; }
public static ILoggerFactory AddConsoleLogger(this ILoggerFactory loggerFactory, ConsoleLoggerConfiguration config) { loggerFactory.AddProvider(new ConsoleLoggerProvider(config)); return(loggerFactory); }