Automattic\WooCommerce\Admin\RemoteInboxNotifications

EvaluationLogger::log()publicWC 1.0

Log the results.

Метод класса: EvaluationLogger{}

No Hooks.

Return

null. Nothing.

Usage

$EvaluationLogger = new EvaluationLogger();
$EvaluationLogger->log();

Code of EvaluationLogger::log() WC 7.1.0

public function log() {
	if ( false === defined( 'WC_ADMIN_DEBUG_RULE_EVALUATOR' ) || true !== constant( 'WC_ADMIN_DEBUG_RULE_EVALUATOR' ) ) {
		return;
	}

	foreach ( $this->results as $result ) {
		$this->logger->debug(
			"[{$this->slug}] {$result['rule']}: {$result['result']}",
			array( 'source' => $this->source )
		);
	}
}