1 Reply Latest reply on Jul 21, 2008 4:39 AM by jaikiran

    Avoid hibernate to log errors in log4j error level

    cattivik100

      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
      philip