Automattic\WooCommerce\Internal\EmailEditor

Integration::init_loggerpublicWC 1.0

Initialize the logger.

Method of the class: Integration{}

No Hooks.

Returns

null. Nothing (null).

Usage

$Integration = new Integration();
$Integration->init_logger();

Integration::init_logger() code WC 10.3.6

public function init_logger() {
	$editor_container = Email_Editor_Container::container();
	$logger           = $editor_container->get( Email_Editor_Logger::class );

	// Register the WooCommerce logger with the email editor package.
	$logger->set_logger( new Logger( wc_get_logger() ) );
}