2011년 6월 13일 월요일

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:
jdbc:jdbcdslog:;targetDriver=
- 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.

댓글 없음:

댓글 쓰기

블록체인 개요 및 오픈소스 동향

블록체인(block chain) 블록체인은 공공 거래장부이며 가상 화폐로 거래할때 발생할때 발생할 수 있는 해킹을 막는 기술. 분산 데이터베이스의 한 형태로, 지속적으로 성장하는 데이터 기록 리스트로서 분산 노드의 운영자에 의한 임의 조작이 불가...