public function getLogger($loggerType = self::DEFAULT_LOGGER_TYPE)
    {
        try {
            return $this->getContainer()->getNamingDirectory()->search(sprintf('php:global/log/%s', $loggerType));
        } catch (NamingException $ne) {
            throw new ServerException("Logger name '$loggerType' does not exist.", 500);
        }
    }
public function getLogger($loggerType = self::DEFAULT_LOGGER_TYPE)
    {
        try {
            return $this->getContainer()->getNamingDirectory()->search(sprintf('php:global/log/%s', $loggerType));
        } catch (NamingException $ne) {
            throw new ServerException("Logger name '$loggerType' does not exist.", 500);
        }
    }
public function getLogger ( $ loggerType = self :: DEFAULT_LOGGER_TYPE ) { try { return $ this -> getContainer ( ) -> getNamingDirectory ( ) -> search ( sprintf ( 'php:global/log/%s' , $ loggerType ) ) ; } catch ( NamingException $ ne ) { throw new ServerException ( "Logger name '$loggerType' does not exist." , 500 ) ; } }
Returns the logger instance with the passed type.

@param string $loggerType The requested logger's type

@return \Psr\Log\LoggerInterface The logger instance
@throws \AppserverIo\Server\Exceptions\ServerException
Returns the logger instance with the passed type .