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