Automattic\WooCommerce\Blueprint

Logger::complete_importpublicWC 1.0

Log the successful completion of an import step.

Method of the class: Logger{}

No Hooks.

Returns

null. Nothing (null).

Usage

$Logger = new Logger();
$Logger->complete_import( $step_name, $result );
$step_name(string) (required)
The name of the step that was imported.
$result(StepProcessorResult) (required)
The result of the import.

Logger::complete_import() code WC 9.9.5

public function complete_import( string $step_name, StepProcessorResult $result ) {
	$this->log(
		sprintf( 'Import "%s" step completed', $step_name ),
		\WC_Log_Levels::INFO,
		array(
			'messages' => $result->get_messages( 'info' ),
		)
	);
}