function RulesLog::checkLog

Checks the log and throws an exception if there were any problems.

File

includes/rules.core.inc, line 2747

Class

RulesLog
The rules default logging class.

Code

public function checkLog($logLevel = self::WARN) {
  foreach ($this->log as $entry) {
    if ($entry[2] >= $logLevel) {
      throw new Exception($this->render());
    }
  }
}