예제 #1
0
 public static WRSetting Set(string cfgFile = "")
 {
     if (set == null)
     {
         set = new WRSetting(cfgFile);
     }
     return(set);
 }
예제 #2
0
파일: log.cs 프로젝트: dpider/GitHub_dpider
 public Log()
 {
     logPath = WRSetting.Set().getSettings("LogPath");
     if ("".Equals(logPath))
     {
         logPath = AppDomain.CurrentDomain.BaseDirectory + @"\Log";  //默认文件夹
     }
     if (!Directory.Exists(logPath))
     {
         Directory.CreateDirectory(logPath); //不存在则创建文件夹
     }
 }
예제 #3
0
 public static void Close()
 {
     set = null;
 }