示例#1
0
 public Log4netClientModule(IConfigurationRoot jimuAppSettings) : base(jimuAppSettings)
 {
     _options = this.JimuAppSettings.GetSection(typeof(JimuLog4netOptions).Name).Get <JimuLog4netOptions>();
     if (_options != null)
     {
         _log4NetLoggerFactory = new Log4netLoggerFactory(_options);
     }
 }
示例#2
0
 public Log4netServerModule(IConfigurationRoot jimuAppSettings) : base(jimuAppSettings)
 {
     _options = this.JimuAppSettings.GetSection("JimuLog4netOptions").Get <JimuLog4netOptions>();
     if (_options != null)
     {
         _log4NetLoggerFactory = new Log4netLoggerFactory(_options);
     }
 }