public static ILoggingBuilder AddColorConsoleLogger(this ILoggingBuilder builder, Action <ColorConsoleLoggerConfiguration> configure) { var config = new ColorConsoleLoggerConfiguration(); configure(config); return(builder.AddColorConsoleLogger(config)); }
public ColorConsoleLoggerProvider(ColorConsoleLoggerConfiguration config) =>
public static ILoggingBuilder AddColorConsoleLogger(this ILoggingBuilder builder, ColorConsoleLoggerConfiguration config) { builder.AddProvider(new ColorConsoleLoggerProvider(config)); return(builder); }
public ColorConsoleLogger( string name, ColorConsoleLoggerConfiguration config) => (_name, _config) = (name, config);