Automattic\WooCommerce\Blueprint
Logger::export_step_failed
Log an export step failure.
Method of the class: Logger{}
No Hooks.
Returns
null
. Nothing (null).
Usage
$Logger = new Logger(); $Logger->export_step_failed( $step_name, $exception );
- $step_name(string) (required)
- The name of the step that failed.
- $exception(Throwable) (required)
- The exception that was thrown.
Logger::export_step_failed() Logger::export step failed code WC 9.9.5
public function export_step_failed( string $step_name, \Throwable $exception ) { $this->log( sprintf( 'Export "%s" step failed', $step_name ), \WC_Log_Levels::ERROR, array( 'error' => $exception->getMessage(), ) ); }