WC_Log_Handler_Email::should_handle()protectedWC 1.0

Determine whether handler should handle log.

Method of the class: WC_Log_Handler_Email{}

No Hooks.

Return

true|false. True if the log should be handled.

Usage

// protected - for code of main (parent) or child class
$result = $this->should_handle( $level );
$level(string) (required)
emergency|alert|critical|error|warning|notice|info|debug.

WC_Log_Handler_Email::should_handle() code WC 9.3.3

protected function should_handle( $level ) {
	return $this->threshold <= WC_Log_Levels::get_level_severity( $level );
}