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.
|