This is how I setup Sakai so that all SQL calls to the database can be logged via SLF4J with the log4jdbc library. The reason that I want to do this is because Sakai heavily relies on Hibernate to generate calls to the database. While hibernate does have the ability to write out the sql to the log4j log, the sql is only the prepared statement that is being called and has no information about the parameters being passed to the prepared statement. This is where the beauty of log4jdbc c