Automattic\WooCommerce\Admin\RemoteInboxNotifications

EvaluationLogger::log()publicWC 1.0

Log the results.

Method of the class: EvaluationLogger{}

No Hooks.

Return

null. Nothing (null).

Usage

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

EvaluationLogger::log() code WC 8.6.1

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 )
		);
	}
}