protected void init() { this.LogLines = new List<String>(); this.CopyLogLines = new List<String>(); _logFilePath = Config.hsLogDirPath + _logFileName; _offset = 0; _sem = new BinarySemaphore(0, 1); _matchIndex = 0; File.WriteAllText(_logFilePath, String.Empty); _logWatcher = new LogWatcher(_logFileName.Substring(1), ref _sem); _logWatcher.start(); this._regexList = new List<Regex>(); }
protected void init() { this.LogLines = new List <String>(); this.CopyLogLines = new List <String>(); _logFilePath = Config.hsLogDirPath + _logFileName; _offset = 0; _sem = new BinarySemaphore(0, 1); _matchIndex = 0; File.WriteAllText(_logFilePath, String.Empty); _logWatcher = new LogWatcher(_logFileName.Substring(1), ref _sem); _logWatcher.start(); this._regexList = new List <Regex>(); }