Thursday, July 17, 2003

Controlling Hibernate Output with Log4J

Our Simple Hibernate Application is a bit verbose. That's probably okay for a web application because stdout actually ends up in a server log. But it's a bit annoying in console application. Fortunately, Hibernate uses the Apache commons-logging abstraction layer and is easily configured. Here's my simple Hibernate application with log4j.