title: Stop JUNit from Logging
body: <p>I am using Junit as my testing technology. Along with this I am also using log4j to log from my main application.</p>
  
  <p>I am encountering an issue where, when Jenkins runs my test cases it is logging the output to my applications log file which is less than ideal.</p>
  
  <p>Is it possible to suppress these log messages some how? My log4j properties is as follows;</p>
  
  <pre><code>log=/var/opt/jboss/standalone/log/myapp.log
  org.apache.commons.logging.Log=org.apache.commons.logging.impl.Log4JLogger
  log4j.rootLogger=DEBUG, FILE
  
  log4j.appender.FILE=org.apache.log4j.FileAppender
  log4j.appender.FILE.append=true
  log4j.appender.FILE.file=${log}
  log4j.appender.FILE.threshold=DEBUG
  log4j.appender.FILE.layout=org.apache.log4j.PatternLayout
  log4j.appender.FILE.layout.ConversionPattern=%d %-5p %c - %m%n
  </code></pre>