public function setLogLevel($level)
    {
        $this->logLevelSet = true;
        if ($level != $this->getLogLevel()) {
            $this->logLevel = $level;
            $this->info("Setting loglevel to $level");
        }
    }