/** * sub process run */ public function run() { $this->reader->open(); while (true) { $line = $this->reader->read(); if ($line === false) { usleep(200); continue; } if ($this->filter->filter($line)) { $message = $this->filter->getErrorMessage($line, $this->reader); $this->notify->send($this->reader->info(), $message); } } }