protected function _checkLogLevel( $level )
	{
		switch( $level )
		{
			case MW_Logger_Abstract::EMERG:
			case MW_Logger_Abstract::ALERT:
			case MW_Logger_Abstract::CRIT:
			case MW_Logger_Abstract::ERR:
			case MW_Logger_Abstract::WARN:
			case MW_Logger_Abstract::NOTICE:
			case MW_Logger_Abstract::INFO:
			case MW_Logger_Abstract::DEBUG:
				break;
			default:
				throw new MW_Logger_Exception( sprintf( 'Invalid log level constant "%1$d"', $level ) );
		}
	}
protected function _checkLogLevel( $level )
	{
		switch( $level )
		{
			case MW_Logger_Abstract::EMERG:
			case MW_Logger_Abstract::ALERT:
			case MW_Logger_Abstract::CRIT:
			case MW_Logger_Abstract::ERR:
			case MW_Logger_Abstract::WARN:
			case MW_Logger_Abstract::NOTICE:
			case MW_Logger_Abstract::INFO:
			case MW_Logger_Abstract::DEBUG:
				break;
			default:
				throw new MW_Logger_Exception( sprintf( 'Invalid log level constant "%1$d"', $level ) );
		}
	}
protected function _checkLogLevel ( $ level ) { switch ( $ level ) { case MW_Logger_Abstract :: EMERG : case MW_Logger_Abstract :: ALERT : case MW_Logger_Abstract :: CRIT : case MW_Logger_Abstract :: ERR : case MW_Logger_Abstract :: WARN : case MW_Logger_Abstract :: NOTICE : case MW_Logger_Abstract :: INFO : case MW_Logger_Abstract :: DEBUG : break ; default : throw new MW_Logger_Exception ( sprintf ( 'Invalid log level constant "%1$d"' , $ level ) ) ; } }
Checks if the given log constant is valid

@param integer $level Log constant
@throws MW_Logger_Exception If log constant is unknown
Checks if the given log constant is valid