-
Query logging related listeners has updated package
- package has changed from
net.ttddyy.dsproxy.listenertonet.ttddyy.dsproxy.listener.logging
- package has changed from
-
classes for logging entry creation has been updated
QueryLogEntryCreator#getLogEntryAsJsonhas been removed.- JSON style log entry creators is pulled up to
DefaultJsonQueryLogEntryCreator - To use JSON style logging, you can set the
QueryLogEntryCreatorto[Commons|SLF4J|SystemOut]QueryLoggingListener#setQueryLogEntryCreator() OracleOutputParameterLogEntryCreatorhas been split toOutputParameterLogEntryCreatorandOutputParameterJsonLogEntryCreator
-
DefaultQueryLogEntryCreator#writeParamsForSingleEntry()has split towriteParamsEntryForSinglePreparedEntry()andwriteParamsForSingleCallableEntry() -
When logging prepared statement, do not include parameter index. ex: Params:[(foo,100),(bar,200)]
- update
DefaultQueryLogEntryCreatorto allow subclasses to override log entry details
- add
CommonsOracleOutputParameterLoggingListener - add new listener for oracle to log output params.
CommonsOracleOutputParameterLoggingListener
- make logger name configurable in
CommonsQueryLoggingListenerandSLF4JQueryLoggingListener setNullandregisterOutParameterreceives descriptive string value inQueryInfo#getQueryArgsList(temporal implementation)ExecutionInfowill have access to the statement/prepared/callable object used by the execution
-
update minimum jdk to java6+
-
add java8 new jdbc API (JDBC 4.2)
-
new JNDI support class:
ProxyDataSourceObjectFactory -
new fluent API builder:
ProxyDataSourceBuilder -
logging:
- update log format
- add json format
- more entries: statement-type, batch, batch-size
- new logger for System.Out
-
change metric names:
call => total, elapsedTime => time, added success, failure, etc. -
rename
~QueryCountLoggingFilterto~QueryCountServletFilter -
remove deprecated methods
- fixed prepared statement getting already executed queries in listener (Issue #9)
- QueryTransformer and ParameterTransformer for query and parameter replacement