예제 #1
0
        public static ILoggingBuilder AddFileLogger(this ILoggingBuilder builder, Action <FileLoggerConfiguration> configure)
        {
            var config = new FileLoggerConfiguration();

            configure(config);
            return(builder.AddFileLogger(config));
        }
예제 #2
0
 public FileLogger(string name, FileLoggerConfiguration configuration)
 {
     _name          = name;
     _configuration = configuration;
 }
예제 #3
0
 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;
 }