WooCommerce::register_remote_log_handler()privateWC 1.0

Register the remote log handler.

Method of the class: WooCommerce{}

No Hooks.

Return

\WC_Log_Handler[].

Usage

// private - for code of main (parent) class only
$result = $this->register_remote_log_handler( $handlers );
$handlers(\WC_Log_Handler[]) (required)
The handlers to register.

WooCommerce::register_remote_log_handler() code WC 9.3.3

private function register_remote_log_handler( $handlers ) {
	$handlers[] = wc_get_container()->get( RemoteLogger::class );
	return $handlers;
}