public function collectLogs(TLogger $logger) { $logs = $logger->getLogs($this->getLevels(), $this->getCategories()); if (!empty($logs)) { $this->processLogs($logs); } }