예제 #1
0
 /// <summary>
 /// 从配置文件载入
 /// </summary>
 protected void Load()
 {
     try
     {
         _config = (LogConfigInfo)LoadConfig();
     }
     catch
     {
         _config = new LogConfigInfo();
     }
 }
예제 #2
0
 /// <summary>
 /// 保存
 /// </summary>
 public void Save(LogConfigInfo config)
 {
     try
     {
         SaveConfig(config);
         Load();
     }
     catch (Exception ex)
     {
         throw new Exception("保存日志配置文件异常:" + ex.Message);
     }
 }