-->
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.  [ 3 posts ] 
Author Message
 Post subject: logging out certain WARN ERROR messages
PostPosted: Thu May 31, 2012 10:45 am 
Newbie

Joined: Wed Jul 15, 2009 10:30 am
Posts: 5
I get these messages in my application:
Quote:
325322 ["http-bio-8081"-exec-6] WARN org.hibernate.util.JDBCExceptionReporter - SQL Error: 1062, SQLState: 23000
325322 ["http-bio-8081"-exec-6] ERROR org.hibernate.util.JDBCExceptionReporter - Duplicate entry '6-27-29-31-36-45' for key 'nr1'

but I can't stop them putting this in log4j.properties:
Quote:
log4j.logger.org.hibernate.util=FATAL,CONSOLE


Anyone knows how do I stop these messages using logging properties please?

EDIT:
I've also set:
Quote:
log4j.logger.org.hibernate=FATAL,CONSOLE

No success


Top
 Profile  
 
 Post subject: Re: logging out certain WARN ERROR messages
PostPosted: Fri Jun 01, 2012 8:49 am 
Newbie

Joined: Wed Jul 15, 2009 10:30 am
Posts: 5
I've even set
Quote:
log4j.rootLogger=FATAL, stdout

... still nothing
... and I mention the c3p0 logging settings work...


Top
 Profile  
 
 Post subject: Re: logging out certain WARN ERROR messages
PostPosted: Fri Jun 01, 2012 9:30 am 
Newbie

Joined: Wed Jul 15, 2009 10:30 am
Posts: 5
I've shuffled some libraries around according to this topic:
http://stackoverflow.com/questions/3318546/log-files-not-generated-with-hibernate-and-slf4j
namely added to classpath:
slf4j-api-1.6.4.jar (removed older version)
slf4j-log4j12-1.6.4.jar
slf4j-simple-1.6.4.jar
jcl-over-slf4j.jar
and removed commons logging jars

Apparently I achieved what I wanted.


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