Automattic\WooCommerce\Internal\Admin\BlockTemplates

BlockTemplateLogger::should_handleprivateWC 1.0

Should the logger handle a given level?

Method of the class: BlockTemplateLogger{}

No Hooks.

Returns

null. Nothing (null).

Usage

// private - for code of main (parent) class only
$result = $this->should_handle( $level );
$level(int) (required)
Level to check.

BlockTemplateLogger::should_handle() code WC 10.7.0

private function should_handle( $level ) {
	return $this->threshold_severity <= \WC_Log_Levels::get_level_severity( $level );
}