jdbcdslog(Tracing tool for JDBC)

The goal of the project is to create a high-performance and easy to use tool for the SQL queries logging for JDBC applications.
Features include:
  • can be attached on Connection, Driver or DataSource(XA,Pooling) levels
  • can log bind parameters for PreparedStatement and CallableStatement calls
  • can log result of queries from ResultSet objects
  • can log queries execution time
  • logging engine agnostic (thanks to SLF4J, you can use most of popular logging libraries like log4j, apache common logging, java logging or simple printing to System.out)
You have three choices how to configure logging proxy:

- wrap JDBC Connection object in your code.
You can use construction like following in this case:
Connection loggingConnection = ConnectionLoggingProxy.wrap(originalConnection);

- configure JDBC Driver logging proxy.
In this case you should use org.jdbcdslog.DriverLoggingProxy instead of the original JDBC Driver class and use jdbcdslog URL format for connection URL parameter:
- configure JDBC DataSource logging proxy.
In this case you should use org.jdbcdslog.ConnectionPoolXADataSourceProxy class instead of your original DataSource class and pass additional parameter targetDS to the DataBase or URL setting for DataSource.


이 블로그의 인기 게시물

Android Service에서 AlertDialog 띄우기

MongoDB, 설치와 간단 사용법

Android Thread 내에서 UI 핸들링