Hi,
I'm using Spring and Hibernate. I had to write an ant script in which Hibernate creates a database with a given url and an application context. So I created a separate jar that does it. But there is no logging for Hibernate. I added log4j, but there is still no logging:
Code:
<logger name="org.hibernate">
<level value="DEBUG" />
</logger>
I want to see something like this:
...
2010-11-11 13:47:31 org.jboss.slf4j.JBossLoggerAdapter info
INFO: Bind entity eu.dreamix.brokers.model.entity.PolicyAdditionalField on table policy_additional_field
2010-11-11 13:47:31 org.jboss.slf4j.JBossLoggerAdapter info
INFO: Binding entity from annotated class: eu.dreamix.brokers.model.entity.AllocationProtocol
2010-11-11 13:47:31 org.jboss.slf4j.JBossLoggerAdapter info
INFO: Binding entity from annotated class: eu.dreamix.brokers.model.entity.BrokerProtocol
...
2010-11-11 13:47:34 org.jboss.slf4j.JBossLoggerAdapter info
INFO: columns: [id, authority, date_modified, owner, active, user_id, date_created]
2010-11-11 13:47:34 org.jboss.slf4j.JBossLoggerAdapter info
INFO: foreign keys: [fk2b0f132164246472]
2010-11-11 13:47:34 org.jboss.slf4j.JBossLoggerAdapter info
INFO: indexes: [primary, user_id, fk2b0f132164246472]
2010-11-11 13:47:34 org.jboss.slf4j.JBossLoggerAdapter info
INFO: table found: broker.base_blank_set
...
What should I do to show it?