public static WRSetting Set(string cfgFile = "") { if (set == null) { set = new WRSetting(cfgFile); } return(set); }
public Log() { logPath = WRSetting.Set().getSettings("LogPath"); if ("".Equals(logPath)) { logPath = AppDomain.CurrentDomain.BaseDirectory + @"\Log"; //默认文件夹 } if (!Directory.Exists(logPath)) { Directory.CreateDirectory(logPath); //不存在则创建文件夹 } }
public static void Close() { set = null; }