Automattic\WooCommerce\Admin\RemoteInboxNotifications

EvaluationLogger::log()publicWC 1.0

Log the results.

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

Хуков нет.

Возвращает

null. Ничего.

Использование

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

Код EvaluationLogger::log() WC 6.9.4

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