public static ILoggingBuilder AddFileLogger(this ILoggingBuilder builder, Action <FileLoggerConfiguration> configure) { var config = new FileLoggerConfiguration(); configure(config); return(builder.AddFileLogger(config)); }
public FileLogger(string name, FileLoggerConfiguration configuration) { _name = name; _configuration = configuration; }
public static ILoggingBuilder AddFileLogger(this ILoggingBuilder builder, FileLoggerConfiguration config) => builder.AddProvider(new FileLoggerProvider(config));
public FileLoggerProvider(FileLoggerConfiguration config) { _loggers = new ConcurrentDictionary <string, ILogger>(); this.config = config; }