Would it be possible in future releases of Hibernate to remove the automatic exception logging?
Example:
Code:
package org.hibernate;
import org.apache.commons.logging.LogFactory;
public class LazyInitializationException extends HibernateException {
public LazyInitializationException(String msg) {
super(msg);
LogFactory.getLog(LazyInitializationException.class).error(msg, this);
}
}
I can quite easily catch the exception in my own code and print out a stack trace, or not as my needs may dictate. No need to force it to print and make me put a bunch of logging filters in my log4j settings file.
[/code]