log4j.properties Ignored when running sbt test
<p>I am working on a Spark application in Scala which utilizes SBT for its builds.  Spark creates very verbose logging which I would like to ignore when tests are running.</p>

<p>I have a log4j.properties file set up under src/test/resources, as well as src/main/resources with the following content:</p>

<pre><code># Set everything to be logged to the console
log4j.rootCategory=INFO, console
log4j.appender.console=org.apache.log4j.ConsoleAppender
log4j.appender.console.layout=org.apache.log4j.PatternLayout
log4j.appender.console.layout.ConversionPattern=%d{yy/MM/dd HH:mm:ss} %p %c{10}: %m%n

# Settings to quiet third party logs that are too verbose
log4j.logger.akka=ERROR
log4j.logger.Remoting=ERROR
log4j.logger.org.apache.spark=ERROR
log4j.logger.org.eclipse.jetty=ERROR
</code></pre>

<p>When running the application with <code>sbt test</code> or running a full application, it runs correctly but still logs all of the INFO level statements which are relevant for Spark</p>

<p>Is there something I'm missing in the file configuration, or do I need to explicitly tell sbt to load log4j.properties?  Should I try a new approach all together?</p>

<p>I am also restricted in that the application needs to be able to run on our CI environment and other users computers with the logging settings applied.  This means that the settings need to be included and recognized from the application's git repo.</p>