예제 #1
0
        public static ILoggerFactory AddConsoleLogger(this ILoggerFactory loggerFactory, Action <ConsoleLoggerConfiguration> configure)
        {
            var config = new ConsoleLoggerConfiguration();

            configure(config);
            return(loggerFactory.AddConsoleLogger(config));
        }
예제 #2
0
 public ConsoleLoggerProvider(ConsoleLoggerConfiguration config)
 {
     _config = config;
 }
예제 #3
0
 public ConsoleLogger(string name, ConsoleLoggerConfiguration config)
 {
     _name   = name;
     _config = config;
 }
예제 #4
0
 public static ILoggerFactory AddConsoleLogger(this ILoggerFactory loggerFactory, ConsoleLoggerConfiguration config)
 {
     loggerFactory.AddProvider(new ConsoleLoggerProvider(config));
     return(loggerFactory);
 }