WC_Log_Handler_Email::set_threshold()publicWC 1.0

Set handler severity threshold.

Method of the class: WC_Log_Handler_Email{}

No Hooks.

Return

null. Nothing (null).

Usage

$WC_Log_Handler_Email = new WC_Log_Handler_Email();
$WC_Log_Handler_Email->set_threshold( $level );
$level(string) (required)
emergency|alert|critical|error|warning|notice|info|debug.

WC_Log_Handler_Email::set_threshold() code WC 8.7.0

public function set_threshold( $level ) {
	$this->threshold = WC_Log_Levels::get_level_severity( $level );
}