WordPress at Your Fingertips
function is not described

WC_Log_Levels::get_level_severity() public WC 1.0

Translate level string to integer.

{} It's a method of the class: WC_Log_Levels{}

No Hooks.

Return

Int. 100 (debug) - 800 (emergency) or 0 if not recognized

Usage

$result = WC_Log_Levels::get_level_severity( $level );
$level(string) (required)
Log level, options: emergency|alert|critical|error|warning|notice|info|debug.

Code of WC_Log_Levels::get_level_severity() WC 5.9.0

public static function get_level_severity( $level ) {
	return self::is_valid_level( $level ) ? self::$level_to_severity[ strtolower( $level ) ] : 0;
}