I have tried tweaking the log4j properties everyway I know how and I can't get the initialization from logging on hibernate startup.
I am running inside the springframework if it makes a difference.
It is the biggest issue when running junit tests. Lots of extra logs that I don't really want to see.
When starting up I get about 30 pages of the following (Shortened for forum!) I have tried everything I know and can't get this logging to turn off. Is it 'system.out'? log4j properties don't seem to have any control.
C:\_dev_>ant test -Dtestcase=InventoryController
Buildfile: build.xml
compile:
test:
[junit] - Loading XML bean definitions from resource [/WEB-INF/inv-servlet.xml] of ServletContext
[junit] - Loading XML bean definitions from resource [/WEB-INF/applicationContext-hibernate.xml] of ServletContext
[junit] - Overriding bean definition for bean 'messageSource': replacing [Root bean with class [org.springframework.context.support.ResourceBundleMessageSou
rce] defined in resource [/WEB-INF/inv-servlet.xml] of ServletContext] with [Root bean with class [org.springframework.context.support.ResourceBundleMessageSour
ce] defined in resource [/WEB-INF/applicationContext-hibernate.xml] of ServletContext]
[junit] - Bean factory for application context [Root XmlWebApplicationContext]: org.springframework.beans.factory.support.DefaultListableBeanFactory definin
g beans ... ,HSQLDataSource,hibernateOracleSessionFactory,
hibernateHSQLSessionFactory,hibernateTransactionManager,orderDao]; Root of BeanFactory hierarchy
[junit] - 61 beans defined in ApplicationContext [Root XmlWebApplicationContext]
[junit] - Creating shared instance of singleton bean 'messageSource'
[junit] - No ApplicationEventMulticaster found for context [Root XmlWebApplicationContext]: using default
[junit] - No ThemeSource found for [Root XmlWebApplicationContext]: using ResourceBundleThemeSource
[junit] - Refreshing listeners
[junit] - Pre-instantiating singletons in factory [org.springframework.beans.factory.support.Defau... ]; Root of BeanFactory hierarchy]
[junit] - Creating shared instance of singleton bean 'invController'
[junit] - Found action method [public org.springframework.web.servlet.ModelAndView com....
[junit] - Found action method [public final org.springframework.web.servlet.ModelAndView org.springframework.web.servlet.mvc.AbstractController.handleReques
t(javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse) throws java.lang.Exception]
[junit] - Hibernate 2.1.5
[junit] - hibernate.properties not found
[junit] - using CGLIB reflection optimizer
[junit] - configuring from resource: /hibernate.cfg.xml
[junit] - Configuration resource: /hibernate.cfg.xml
[junit] - Mapping resource: com/shopbotz/hibernate/domain/xml/Setting.hbm.xml
[junit] - Mapping class: ...
|