I have a simple Java application (NOT a Web app, so there is no WEB-INF/ or any Web functionality).
The simple Java app utilizes Spring 3.1 to load/manage objects.
The issue is that when it runs, I see these log statements, which I don't want to see.
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
I manually added a new file called log4j.properties in the same folder as the class with main(), which I run. This didn't help.
log4j.properties (same folder as class with main())
log4j.category.org.springframework=WARN
I rebuild the project, clean, and run the class, and still see this output.
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.
I followed the examples from here, but nothing helped. I do not have a Web app. Disabling Spring log, to have readable logs How to turn off Spring 3 debug logging?