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