protected function loadRegistry($force = false) { if (!$force && $this->registryArray) { return; } PWELogger::debug("Loading registry file: %s", $this->registryFile); // read site structure $XML = new PWEXML($this->PWE->getTempDirectory()); $this->registryArray = array(); $XML->FileToArray($this->registryFile, $this->registryArray); $logger = $this->getModuleSettings('PWE\\Core\\PWELogger'); if ($logger['!a']) { PWELogger::setLevel(PWELogger::getLevelByName($logger['!a']['level'])); } }
public function testSetLevel() { PWELogger::setLevel(PWELogger::DEBUG); PWELogger::getLevelByName("debug"); PWELogger::getLevelByName("info"); }