public Log4NetProvider(LoggingConfig config, MyCustomAppender otherAppender)
 {
     _config = config;
     BasicConfigurator.Configure(_repository, new ConsoleAppender(), otherAppender);
     LogManager.GetLogger(this.GetType()).Info("Logging initialized.");
 }
Beispiel #2
0
 public static ILoggerFactory AddLog4Net(this ILoggerFactory factory, LoggingConfig config, MyCustomAppender appender)
 {
     factory.AddProvider(new Log4NetProvider(config, appender));
     return(factory);
 }