This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Testing and the fly likes turn logging off for junit during build Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » Testing
Bookmark "turn logging off for junit during build" Watch "turn logging off for junit during build" New topic
Author

turn logging off for junit during build

Mark Lybarger
Ranch Hand

Joined: Dec 19, 2003
Posts: 72
i have junit tests for some classes that run during our build. these classes under test use log4j (through commons-logging actually). i'd like to turn logging off only for running the junit testing. does anyone have idea/example how to do this?
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

Set the logging threshold for those classes in log4j.properties.


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: turn logging off for junit during build
 
Similar Threads
how to disable runtime warning??
NX: Logging and Alain Trottier book
include logging?
Log4J Query
How to suppress comiler warnings?