WC_Logger::should_handle( string $level )

Determine whether to handle or ignore 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/class-wc-logger.php

	protected function should_handle( $level ) {
		if ( null === $this->threshold ) {
			return true;
		}
		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.