These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: hibernate logging in a separate jar
PostPosted: Wed Nov 24, 2010 10:47 am 
Newbie

Joined: Wed Oct 13, 2010 8:48 am
Posts: 2
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?


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.