• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1184
  • Last Modified:

Turning Off Logging In hibernate

I need to turn off logging in hibernate. I know hibernate uses L0g4j Internally. I am just wondering If i can edit some properties in hibernate.cfg.xml file to turn off hibernate logging. Say for example the below property in hibernate.cfg.xml turns off SQL logging

<property name="show_sql">false</property>

. I am expecting something similar to turn off the whole hibernate logging, just bcoz of lengthy logs and i am missing my debug messages.




Thanks
Subha
0
SubhaBabu
Asked:
SubhaBabu
2 Solutions
 
Mayank SAssociate Director - Product EngineeringCommented:
You might need to do it for individual properties. Or else set the level of all your loggers to Fatal.
0
 
hoomanvCommented:
if you want your debug messages ser level to DEBUG
0
 
SubhaBabuAuthor Commented:
where to set them. Can i set them in my hibernate.cfg.xml file.If yes what is the name of the property


Thanks
Haru
0
The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

 
hoomanvCommented:
for eclipse hibernate plugin there is a file called hibernate-log4j.properties
yuo can set various logging properties
http://anonhibernate.labs.jboss.com/tags/TOOLS_3_1_0_ALPHA6/HibernateExt/org.hibernate.eclipse/hibernate-log4j.properties
0
 
hoomanvCommented:
0
 
Mayank SAssociate Director - Product EngineeringCommented:
>> Can i set them in my hibernate.cfg.xml file.

Post your Hibernate config file.
0
 
objectsCommented:
you can set the log level in your log4j config file.
0

Featured Post

Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now