/// <summary> /// 添加日志文件 /// </summary> /// <param name="logFile"></param> public void AddLogFile(LogFile logFile) { lock (this.mListLock) { this.mFileList.Add(logFile); } }
/// <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); } }