title: Deeplearning4j Disable Logging
body: <p>I have a deeplearning for java project which is producing huge amounts of logger output on STDO. I want to disable that but I cant seem to figure out how to do it.</p>
  
  <p>I have a <code>log4j.properties</code> file in my src/main/resources folder which looks like this:</p>
  
  <pre><code>log4j.rootLogger=ERROR, Console
  log4j.logger.play=WARN
  log4j.appender.Console=org.apache.log4j.ConsoleAppender
  log4j.appender.Console.layout=org.apache.log4j.PatternLayout
  log4j.appender.Console.layout.ConversionPattern=%d{ABSOLUTE} %-5p ~ %m%n
  
  log4j.appender.org.springframework=WARN
  log4j.appender.org.nd4j=WARN
  log4j.appender.org.canova=WARN
  log4j.appender.org.datavec=WARN
  log4j.appender.org.deeplearning4j=WARN
  log4j.appender.opennlp.uima=OFF
  log4j.appender.org.apache.uima=OFF
  log4j.appender.org.cleartk=OFF
  
  log4j.logger.org.springframework=WARN
  log4j.logger.org.nd4j=WARN
  log4j.logger.org.canova=WARN
  log4j.logger.org.datavec=WARN
  log4j.logger.org.deeplearning4j=WARN
  log4j.logger.opennlp.uima.util=OFF
  log4j.logger.org.apache.uima=OFF
  log4j.logger.org.cleartk=OFF
  log4j.logger.org.deeplearning4j.optimize.solvers.BaseOptimizer=OFF
  slf4j.logger.org.deeplearning4j.optimize.solvers.BaseOptimizer=OFF
  </code></pre>
  
  <p>The specific output that is far too much is: </p>
  
  <p><code>21:26:34.860 [main] DEBUG o.d.optimize.solvers.BaseOptimizer - Hit termination condition on iteration 0: score=1.2894165074915344E19, oldScore=1.2894191699433697E19, condition=org.deeplearning4j.optimize.terminations.EpsTermination@55f111f3</code></p>
  
  <p>which happens multiple times a second while training.</p>