WC_Log_Handler_Email::should_handle( string $level )

Determine whether handler should handle log.


Description Description


Parameters Parameters

$level

(Required) emergency|alert|critical|error|warning|notice|info|debug.


Top ↑

Return Return

(bool) True if the log should be handled.


Top ↑

Source Source

File: includes/log-handlers/class-wc-log-handler-email.php

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


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.