//
ClassLogger makeLogger(String dbgTag)
throws IllegalArgumentException {
switch (infoType) {
case RMI_TYPE:
return new ClassLogger(ClassLogger.LOGGER_LEGACY_RMI,dbgTag);
case HTTP_TYPE:
return new ClassLogger(ClassLogger.LOGGER_LEGACY_HTTP,dbgTag);
case HTML_TYPE:
return new ClassLogger(ClassLogger.LOGGER_ADAPTOR_HTML,dbgTag);
case SNMP_TYPE:
return new ClassLogger(ClassLogger.LOGGER_ADAPTOR_SNMP,dbgTag);
case HTTPS_TYPE:
return new ClassLogger(ClassLogger.LOGGER_LEGACY_HTTPS,dbgTag);
default:
throw new IllegalArgumentException("Invalid connector Type") ;
}
}