-->
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: Set logging Level in persistence.xml
PostPosted: Mon Aug 25, 2008 10:50 pm 
Newbie

Joined: Mon Aug 25, 2008 10:45 pm
Posts: 5
Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp

Hibernate version:

Mapping documents:

Code between sessionFactory.openSession() and session.close():

Full stack trace of any exception that occurs:

Name and version of the database you are using:

The generated SQL (show_sql=true):

Debug level Hibernate log excerpt:


Problems with Session and transaction handling?

Read this: http://hibernate.org/42.html


Hi All,
I wanna one favour from you...
We r using Java Persistence API with hibernate..
I dont know how to set logging level in persistence.xml because its logging all finest logs.
So we dont wanna all. We wanna only log warn level of logging....

thanx & Regards,
Sankar M


Top
 Profile  
 
 Post subject:
PostPosted: Tue Aug 26, 2008 1:53 am 
Expert
Expert

Joined: Wed Mar 03, 2004 6:35 am
Posts: 1240
Location: Lund, Sweden
There is a chapter about logging in the Hibernate documentation.
http://www.hibernate.org/hib_docs/v3/re ... on-logging


Top
 Profile  
 
 Post subject: Set logging Level in persistence.xml
PostPosted: Tue Aug 26, 2008 5:29 am 
Newbie

Joined: Mon Aug 25, 2008 10:45 pm
Posts: 5
Hi,
I think this for configure in hibernate.cfg.xml.
But we are using Java Persistence API and the provider is Hibernate.
So i wanna to know the property for set the logging level in Persistence.xml


Top
 Profile  
 
 Post subject:
PostPosted: Tue Aug 26, 2008 5:44 am 
Expert
Expert

Joined: Wed Mar 03, 2004 6:35 am
Posts: 1240
Location: Lund, Sweden
There are no log settings in hibernate.cfg.xml file. Those settings are stored in other files. Which one depends on the logging system you are using. For example, if you use log4j, you need to place the 'log4j.properties' file somewhere in the class path.


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.