-->
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: Need help in creating log files in Hibernate
PostPosted: Mon Jun 25, 2012 1:48 pm 
Newbie

Joined: Mon Jun 25, 2012 1:38 pm
Posts: 1
Hi everyone. I need to get all the INFO: messages which gets generated when we run the java program which uses hibernate.

Example:
Jun 25, 2012 8:16:16 PM org.hibernate.cfg.annotations.Version <clinit>
INFO: Hibernate Annotations 3.3.1.GA
Jun 25, 2012 8:16:16 PM org.hibernate.cfg.Environment <clinit>
INFO: Hibernate 3.2.5
Jun 25, 2012 8:16:16 PM org.hibernate.cfg.Environment <clinit>
INFO: hibernate.properties not found
Jun 25, 2012 8:16:16 PM org.hibernate.cfg.Environment buildBytecodeProvider
INFO: Bytecode provider name : cglib
Jun 25, 2012 8:16:16 PM org.hibernate.cfg.Environment <clinit>
INFO: using JDK 1.4 java.sql.Timestamp handling
Jun 25, 2012 8:16:16 PM org.hibernate.cfg.Configuration configure
INFO: configuring from resource: /hibernate.cfg.xml
Jun 25, 2012 8:16:16 PM org.hibernate.cfg.Configuration getConfigurationInputStream
INFO: Configuration resource: /hibernate.cfg.xml
Jun 25, 2012 8:16:16 PM org.hibernate.cfg.Configuration doConfigure
INFO: Configured SessionFactory: null
Jun 25, 2012 8:16:16 PM org.hibernate.cfg.AnnotationBinder bindClass

all these will be generated. I want all these to be stored in a txt file for future use. Just help me how to catch all these information.


Top
 Profile  
 
 Post subject: Re: Need help in creating log files in Hibernate
PostPosted: Mon Jun 25, 2012 9:03 pm 
Newbie

Joined: Mon Jun 25, 2012 8:07 pm
Posts: 1
http://www.formvote.com/discuss.php?pos ... 8739689367


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.