public function setMaximumLogLevel($level)
    {
        if ($level !== null && !is_numeric($level)) {
            throw new InvalidArgumentException("Maximum log level must be a number or null");
        }

        $this->config["maximumLogLevel"] = $level;
    }
public function setMaximumLogLevel($level)
    {
        if ($level !== null && !is_numeric($level)) {
            throw new InvalidArgumentException("Maximum log level must be a number or null");
        }

        $this->config["maximumLogLevel"] = $level;
    }
public function setMaximumLogLevel ( $ level ) { if ( $ level !== null && ! is_numeric ( $ level ) ) { throw new InvalidArgumentException ( "Maximum log level must be a number or null" ) ; } $ this -> config [ "maximumLogLevel" ] = $ level ; }
Every log level contains it's numeric value (default ones are defined by `Table 2. Syslog Message Severities` of
RFC 5424.
This method allows to specify maximum log level delivered to destination, eg. if you set it to 1 only ALERT and
EMERGENCY message will pass.

@param number $level Any numeric value

@throws InvalidArgumentException Non-numeric level passed
Every log level contains it s numeric value ( default ones are defined by Table 2 . Syslog Message Severities of RFC 5424 . This method allows to specify maximum log level delivered to destination eg . if you set it to 1 only ALERT and EMERGENCY message will pass .