You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by Christopher Berry <ch...@etrade.com> on 2001/11/16 23:40:19 UTC
log4j + JUnit + ANt1.4
Greetings,
I am trying to get the junit task in Ant1.4 to run properly with log4j. Has
anyone else been successful with this??
If I print to System.out in my JUnit Tests, the output is properly created.
But when I use log4j to a ConsoleAppender, it is not.
I am using the withOutAndErr switch in Ant.
I think that log4j might be statically saving System.out in the
ConsoleAppender, so that when System.out is redefined in Ant's
JUnitTestRunner class, that change doesn't show up in the log4j
ConsoleAppender?? Is that true??
Anyone have any other ideas??
Thanks,
-- Chris
Chris Berry --- christopher.berry@etrade.com -- 512-323-9479