示例#1
0
 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']));
     }
 }
示例#2
0
 public function testSetLevel()
 {
     PWELogger::setLevel(PWELogger::DEBUG);
     PWELogger::getLevelByName("debug");
     PWELogger::getLevelByName("info");
 }