[jboss-user] [EJB 3.0] - Stop hibernate to log errors in log4j error level

cattivik100 do-not-reply at jboss.com
Mon Jul 21 04:25:17 EDT 2008

I'm using an email appender in log4j (org.apache.log4j.net.SMTPAppender) for logging exception to an email address. 
Basically I want to log only exceptions coming from log.error() calls in code.
But jboss (hibernate) log some exceptions (org.hibernate.util.JDBCExceptionReporter) in error log level.
So in log file I have some entry coming from hibernate even if I catch corresponding exceptions and manage them properly.
Those cause unnecessary error mails to be notified.
Is there a way to avoid hibernate to log errors in log4j error level?
Many thanks

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4165587#4165587

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4165587

More information about the jboss-user mailing list