title: Disabling Spring INFO Logging in Simple Java App
body: <p>I have a simple Java application (NOT a Web app, so there is no WEB-INF/ or any Web functionality).</p>
  
  <p>The simple Java app utilizes Spring 3.1 to load/manage objects.</p>
  
  <p>The issue is that when it runs, I see these log statements, which I don't want to see.</p>
  
  <pre><code>Mar 15, 2014 2:19:59 PM org.springframework.context.support.AbstractApplicationContext prepareRefresh
  INFO: Refreshing org.springframework.context.support.ClassPathXmlApplicationContext@4848268a: startup date [Sat Mar 15 14:19:59 EDT 2014]; root of context hierarchy
  Mar 15, 2014 2:19:59 PM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
  INFO: Loading XML bean definitions from class path resource [springtest/beans.xml]
  Mar 15, 2014 2:19:59 PM org.springframework.beans.factory.support.DefaultListableBeanFactory preInstantiateSingletons
  INFO: Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@c7b2b3e: defining beans [testbean]; root of factory hierarchy
  </code></pre>
  
  <p>I manually added a new file called <strong>log4j.properties</strong> in the same folder as the class with main(), which I run. This didn't help.</p>
  
  <p><strong>log4j.properties (same folder as class with main())</strong></p>
  
  <pre><code>log4j.category.org.springframework=WARN
  </code></pre>
  
  <p>I rebuild the project, clean, and run the class, and still see this output.</p>
  
  <p>EDIT: I verified that log4j.properties gets placed in my classpath, it is copied to build\classes\ and I can see it there after I build.</p>
  
  <p>I followed the examples from here, but nothing helped. I do not have a Web app.
  <a href="https://stackoverflow.com/questions/18648014/disabling-spring-log-to-have-readable-logs">Disabling Spring log, to have readable logs</a>
  <a href="https://stackoverflow.com/questions/10905578/how-to-turn-off-spring-3-debug-logging">How to turn off Spring 3 debug logging?</a></p>