예제 #1
0
파일: LogWatcher.cs 프로젝트: bumjung/eraHS
 public LogWatcher(string configFilePath, ref BinarySemaphore sem)
 {
     _watcher = new FileSystemWatcher();
     _sem = sem;
     _watcherCount = 0;
     _configFilePath = configFilePath;
 }
예제 #2
0
파일: BaseReader.cs 프로젝트: bumjung/eraHS
        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>();
        }