DOMConfigurator.configure("input/xml/customLogger"+number+".xml");
int i = -1;
Logger root = Logger.getRootLogger();
logger.trace("Message " + ++i);
logger.debug("Message " + ++i);
logger.warn ("Message " + ++i);
logger.error("Message " + ++i);
logger.fatal("Message " + ++i);
Exception e = new Exception("Just testing");
logger.debug("Message " + ++i, e);
Transformer.transform(
"output/temp", FILTERED,
new Filter[] {
new LineNumberFilter(), new SunReflectFilter(),
new JunitTestRunnerFilter()
});
assertTrue(Compare.compare(FILTERED, "witness/customLogger."+number));