public static void writeLogMessages() {
// Don't init the log in a member variable - it must be done AFTER System.out is changed.
// TODO: this needs to be cleaner, or we need each test in it's own JVM!
Logi18n log = LogFactory.getLogi18n(CLASS, "TestLevels");
log.debug("testMessage", new Object[] {"1st", "debug"});
log.info("testMessage", new Object[] {"1st", "info"});
log.warn("testMessage", new Object[] {"1st", "warn"});
log.error("testMessage", new Object[] {"1st", "error"});
log.fatal("testMessage", new Object[] {"1st", "fatal"});
}