The code for configuring SQL logging in a standalone MyBatis application can be found over on GitHub, and we also have a separate example for configuring SQL logging in MyBatis.