function RulesLog::logger
Return value
RulesLog Returns the rules logger instance.
2 calls to RulesLog::logger()
- rules_debug_log_pre_render in ./
rules.module - Pre-render callback for the debug log, which renders and then clears it.
- rules_log in ./
rules.module - Log a message to the rules logger.
File
-
includes/
rules.core.inc, line 2696
Class
- RulesLog
- The rules default logging class.
Code
public static function logger() {
if (!isset(self::$logger)) {
$class = __CLASS__;
self::$logger = new $class(variable_get('rules_log_level', self::INFO));
}
return self::$logger;
}