Get a logger, based on a String
POILogger logger = null;
if (_loggers.containsKey(cat))
{
logger = ( POILogger ) _loggers.get(cat);
}
else
{
try{
String loggerClassName = System.getProperty("org.apache.poi.util.POILogger");
Class loggerClass = Class.forName(loggerClassName);
logger = ( POILogger ) loggerClass.newInstance();
}
catch(Exception e){
logger = new NullLogger();
}
logger.initialize(cat);
_loggers.put(cat, logger);
}
return logger;