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;
    }