Beispiel #1
0
 public static WriterLog getInstance(String _path, int _time_out)
 {
     if (instance == null)
     {
         instance = new WriterLog(_path, _time_out);
     }
     return(instance);
 }
Beispiel #2
0
 public void Initialization()
 {
     conf = new ConfigClass();
     //conf.LoadConfig();
     if (conf.GetValue("Logging_IS") == "Да")
     {
         int       times     = Convert.ToInt32(conf.GetValue("TimeOutLogEmpty"));
         string    path      = conf.GetValue("PathService");
         WriterLog wr_log    = WriterLog.getInstance(path + "\\" + conf.GetValue("FolderLog"), times);
         Thread    newThread = new Thread(wr_log.LOOP);
         list_thread.Add(newThread);
         FolderProduct fold_prod = new FolderProduct(300000, path);
         newThread = new Thread(fold_prod.LOOP);
         list_thread.Add(newThread);
     }
 }