posted 7 years ago
Hibernate uses Log4J for logging, which is very good. But we have a lot of database transactions, and hibernate calls the isDebugEnabled() method millions of times in our application which causes a delay of up to 20 seconds when adding a lot of data. is there some way to supress this? disabled log4j causes the logger not to log, but the check is still done. it would be more efficient if the check for isDebugEnabled() happend only once, not over and over again...