function RulesLog::log

Same name in other branches
  1. 8.x-3.x src/Logger/RulesLog.php \Drupal\rules\Logger\RulesLog::log()

Logs a log message.

See also

rules_log()

File

includes/rules.core.inc, line 2724

Class

RulesLog
The rules default logging class.

Code

public function log($msg, $args = array(), $logLevel = self::INFO, $scope = NULL, $path = NULL) {
    if ($logLevel >= $this->logLevel) {
        $this->log[] = array(
            $msg,
            $args,
            $logLevel,
            microtime(TRUE),
            $scope,
            $path,
        );
    }
}