public function hasLogger($loggerType) { try { $this->getContainer()->getNamingDirectory()->search(sprintf('php:global/log/%s', $loggerType)); return true; } catch (NamingException $ne) { return false; } }