How log4jdbc works
masterlog4jdbc is a JDBC proxy driver that intercepts JDBC calls to log SQL statements, timing information, and other metadata. It uses the SLF4J (Simple Logging Facade for Java) system to delegate actual logging to your preferred logging framework (such as Logback, Log4j, or java.util.logging).
By wrapping your existing JDBC driver, it can automatically inject bind arguments into prepared statements for better readability and provide timing statistics to help identify slow queries.