net.ttddyy.dsproxy.support.SystemOutQueryCountLoggingHandlerInterceptor Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of datasource-proxy Show documentation
Show all versions of datasource-proxy Show documentation
Provide a datasource proxy that can inject your own logic into all queries.
package net.ttddyy.dsproxy.support;
/**
* {@link org.springframework.web.servlet.HandlerInterceptor} to log query metrics to {@link java.lang.System#out}.
*
* @author Tadaya Tsuyukubo
* @since 1.3
*/
public class SystemOutQueryCountLoggingHandlerInterceptor extends AbstractQueryCountLoggingHandlerInterceptor {
@Override
protected void writeLog(String logEntry) {
System.out.println(logEntry);
}
}