try {
@SuppressWarnings("unused")
long y = x / 0;
} catch (Exception ex) {
t = ex;
logger.catching(ex);
logger.catching(XLogger.Level.DEBUG, ex);
}
verifyWithException((LoggingEvent) listAppender.list.get(0), "catching", t);
verifyWithLevelAndException((LoggingEvent) listAppender.list.get(1), XLogger.Level.DEBUG,
"catching", t);