Exemple #1
0
 /// <summary>
 /// 启动日志记录
 /// </summary>
 public override void Start()
 {
     //**********VERSION 1.1.2.0 START**********//
     if (_thread != null)
     {
         _thread.Start();
         return;
     }
     //**********VERSION 1.1.2.0 END**********//
     LogPersistenceService.SetPersistParam(LogFormatter.GetLogFileName(TXTLogFactory.GetLogFileName(LogConfig)));
     //**********VERSION 1.1.2.0 START**********//
     _thread = new Thread(Run)
     {
         IsBackground = true
     };
     _thread.Start();
     //new Thread(Run).Start();
     //**********VERSION 1.1.2.0 END**********//
 }
Exemple #2
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="logcfg"></param>
 public StreamFileLPS(LogServiceConfig logcfg)
 {
     LogConfig = logcfg;
     _theStreamFileSplitManager = new StreamFileSplitManager(TXTLogFactory.GetLogFileName(logcfg));
     _fileName = _theStreamFileSplitManager.GetNewFileName(1);
 }