Action_Scheduler\Migration

Config::get_destination_logger()publicWC 1.0

Get the configured destination logger.

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

Хуков нет.

Возвращает

ActionScheduler_Logger.

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

$Config = new Config();
$Config->get_destination_logger();

Код Config::get_destination_logger() WC 8.7.0

public function get_destination_logger() {
	if ( empty( $this->destination_logger ) ) {
		throw new \RuntimeException( __( 'Destination logger must be configured before running a migration', 'woocommerce' ) );
	}

	return $this->destination_logger;
}