-->
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.  [ 3 posts ] 
Author Message
 Post subject: Bibernate logging
PostPosted: Fri Jan 09, 2004 1:40 pm 
Newbie

Joined: Fri Jan 09, 2004 1:34 pm
Posts: 2
Is is possible to get hold of the byte stream that hibernate writes to as log messages so that these messages can be logged using a custom logging framework? Basically we may not be using Log4J or JDK 1.4 for logging but our own logging gramework, in that case how can we get hold of the hibernate log messages and pass them to custom loggign framework.

Thanks

Jamal [/b]


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 09, 2004 1:41 pm 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
Use log4j and pipe the message to your own system by writing a custom Log4j appender.

_________________
JAVA PERSISTENCE WITH HIBERNATE
http://jpwh.org
Get the book, training, and consulting for your Hibernate team.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 09, 2004 2:52 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
or use commons-logging and make a commons-logging adapter and thus avoid the extra dependency

_________________
Max
Don't forget to rate


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.