예제 #1
0
 /// <summary>
 /// 添加日志文件
 /// </summary>
 /// <param name="logFile"></param>
 public void AddLogFile(LogFile logFile)
 {
     lock (this.mListLock)
     {
         this.mFileList.Add(logFile);
     }
 }
예제 #2
0
        /// <summary>
        /// 创建文件日志
        /// </summary>
        /// <param name="strSystemMark"></param>
        public void CreateLogFile(string strSystemMark)
        {
            lock (mMapLock)
            {
                if (this.mFile.ContainsKey(strSystemMark))
                    return;

                LogFile logFile = new LogFile(strSystemMark);
                // 添加到队列中去
                AddLogFile(logFile);
                this.mFile.Add(strSystemMark, logFile);
            }
        }