Logger tempLogger = null;
try
{
tempLogger = LogDomains.getLogger(LogDomains.DPL_LOGGER);
tempLogger.finest("Successfully created Deployment Logger");
}
catch(Throwable t)
{
try
{
tempLogger = LogDomains.getLogger(LogDomains.ROOT_LOGGER);
tempLogger.warning("Couldn't create Deployment Logger -- created a Root Logger instead");
}
catch(Throwable t2)
{
// now what?
}
}
finally
{
logger = tempLogger;
}
logger.setLevel(Level.FINEST);
logger.info("dadads");
logger.log(Level.INFO, "info", new String[] {"Yo", "ewe" });
logger.log(Level.FINE, "fine", new String[] {"Yo", "ewe" });