-->
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.  [ 2 posts ] 
Author Message
 Post subject: Hibernate Logging for SAR
PostPosted: Mon Mar 08, 2004 9:46 pm 
Beginner
Beginner

Joined: Wed Mar 03, 2004 6:02 am
Posts: 46
Location: Kuala Lumpur, Malaysia
vital stats: Hibernate 2.1.2, Deployed in JBoss via a SAR.

problem: Cannot enable logging for Hibernate.

I've tried adding this to the log4j.xml in myserver/conf directory, but to no avail.

Code:
   
   <category name="log4j.logger.net.sf.hibernate.SQL">
     <priority value="DEBUG"/>
     <appender-ref ref="GAV_CONSOLE"/>
   </category>


Should I add a log4j.properties file into my Hibernate.sar archive ?

Regards,

Alistair[/i]


Top
 Profile  
 
 Post subject:
PostPosted: Mon Mar 08, 2004 10:52 pm 
Beginner
Beginner

Joined: Wed Mar 03, 2004 6:02 am
Posts: 46
Location: Kuala Lumpur, Malaysia
Sorry to waste people's time. But I finally got it to work. Basically in my log4j.xml, I didn't include my custom appender into the list of root loggers.

Regards,

Alistair


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

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.