public function setLevel($level)
    {
        if (!array_key_exists($level, self::$levels)) {
            throw new Mustache_Exception_InvalidArgumentException(sprintf('Unexpected logging level: %s', $level));
        }

        $this->level = $level;
    }
public function setLevel($level)
    {
        if (!array_key_exists($level, self::$levels)) {
            throw new Mustache_Exception_InvalidArgumentException(sprintf('Unexpected logging level: %s', $level));
        }

        $this->level = $level;
    }
public function setLevel ( $ level ) { if ( ! array_key_exists ( $ level , self :: $ levels ) ) { throw new Mustache_Exception_InvalidArgumentException ( sprintf ( 'Unexpected logging level: %s' , $ level ) ) ; } $ this -> level = $ level ; }
Set the minimum logging level.

@throws Mustache_Exception_InvalidArgumentException if the logging level is unknown

@param int $level The minimum logging level which will be written
Set the minimum logging level .