WC_Log_Handler_Email::should_handle()protectedWC 1.0

Determine whether handler should handle log.

Метод класса: WC_Log_Handler_Email{}

Хуков нет.

Возвращает

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

Использование

// protected - в коде основоного (родительского) или дочернего класса
$result = $this->should_handle( $level );
$level(строка) (обязательный)
emergency|alert|critical|error|warning|notice|info|debug.

Код WC_Log_Handler_Email::should_handle() WC 8.7.0

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