-->
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.  [ 4 posts ] 
Author Message
 Post subject: How to turn off logging?
PostPosted: Sat Oct 11, 2003 11:17 am 
Regular
Regular

Joined: Sat Oct 11, 2003 11:13 am
Posts: 69
I want to turn off logging. I execute saving and loading of objects.

Then it logs on the console stuff in red (see below).

How can I turn that logging off?


Oct 11, 2003 5:06:50 PM net.sf.hibernate.cfg.Environment <clinit>
INFO: Hibernate 2.0.3
Oct 11, 2003 5:06:50 PM net.sf.hibernate.cfg.Environment <clinit>
INFO: loaded properties from resource hibernate.properties: {hibernate.connection.username=root, hibernate.connection.password=, hibernate.cglib.use_reflection_optimizer=true, hibernate.dialect=net.sf.hibernate.dialect.MySQLDialect, hibernate.connection.url=jdbc:mysql://localhost:3306/empl, hibernate.connection.driver_class=com.mysql.jdbc.Driver}
Oct 11, 2003 5:06:50 PM net.sf.hibernate.cfg.Environment <clinit>
INFO: using CGLIB reflection optimizer
Oct 11, 2003 5:06:50 PM net.sf.hibernate.cfg.Environment <clinit>
INFO: JVM proxy support: true
Oct 11, 2003 5:06:50 PM net.sf.hibernate.cfg.Configuration addClass
INFO: Mapping resource: com/ibm/hibernate_article/Department.hbm.xml
Oct 11, 2003 5:06:52 PM net.sf.hibernate.cfg.Binder bindRootClass
INFO: Mapping class: com.ibm.hibernate_article.Department -> department
Oct 11, 2003 5:06:52 PM net.sf.hibernate.cfg.Configuration addClass
INFO: Mapping resource: com/ibm/hibernate_article/Employee.hbm.xml
Oct 11, 2003 5:06:53 PM net.sf.hibernate.cfg.Binder bindRootClass
INFO: Mapping class: com.ibm.hibernate_article.Employee -> employee
Oct 11, 2003 5:06:53 PM net.sf.hibernate.cfg.Configuration secondPassCompile
INFO: processing one-to-many association mappings
Oct 11, 2003 5:06:53 PM net.sf.hibernate.cfg.Configuration secondPassCompile
INFO: processing foreign key constraints
Oct 11, 2003 5:06:53 PM net.sf.hibernate.impl.SessionFactoryImpl <init>
INFO: building session factory
Oct 11, 2003 5:06:53 PM net.sf.hibernate.dialect.Dialect <init>
INFO: Using dialect: net.sf.hibernate.dialect.MySQLDialect
Oct 11, 2003 5:06:53 PM net.sf.hibernate.connection.DriverManagerConnectionProvider configure
INFO: Hibernate connection pool size: 20
Oct 11, 2003 5:06:53 PM net.sf.hibernate.connection.DriverManagerConnectionProvider configure
INFO: using driver: com.mysql.jdbc.Driver at URL: jdbc:mysql://localhost:3306/empl
Oct 11, 2003 5:06:53 PM net.sf.hibernate.connection.DriverManagerConnectionProvider configure
INFO: connection properties: {user=root, password=}
Oct 11, 2003 5:06:53 PM net.sf.hibernate.impl.SessionFactoryImpl <init>
INFO: Use outer join fetching: true
Oct 11, 2003 5:06:54 PM net.sf.hibernate.impl.SessionFactoryImpl <init>
INFO: Use scrollable result sets: true
Oct 11, 2003 5:06:54 PM net.sf.hibernate.impl.SessionFactoryImpl <init>
INFO: JDBC 2 max batch size: 15
Oct 11, 2003 5:06:54 PM net.sf.hibernate.impl.SessionFactoryObjectFactory addInstance
INFO: no JDNI name configured
Oct 11, 2003 5:06:54 PM net.sf.hibernate.impl.SessionFactoryImpl <init>
INFO: Query language substitutions: {}


Top
 Profile  
 
 Post subject:
PostPosted: Sat Oct 11, 2003 1:10 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 3:00 pm
Posts: 1816
Location: Austin, TX
I don't see anything in red.

Hibernate uses commons logging. Are you using log4j or 1.4-logging to back commons logging? Which ever it is, just configure it appropriately to turn off the logging you don't want to see.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Oct 11, 2003 3:02 pm 
Regular
Regular

Joined: Sat Oct 11, 2003 11:13 am
Posts: 69
steve wrote:
I don't see anything in red.

Hibernate uses commons logging. Are you using log4j or 1.4-logging to back commons logging? Which ever it is, just configure it appropriately to turn off the logging you don't want to see.


I meant the logging stuff comes red in the Eclipse console.

I used a tutorial for learning Hibernate. I just don't know what you talk about. I am not conscious of having set logging somewhere. It just logged and I don't know why. See my other posting of today. It is the same files. I can see nowhere that I configured logging.

Sorry, I am really a beginner and don't know what to do.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Oct 11, 2003 3:03 pm 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
Your next step should be to learn about logging in Java. I suggest starting with "log4j" in Google.

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


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