public class CommonsQueryCountLoggingHandlerInterceptor extends AbstractQueryCountLoggingHandlerInterceptor
HandlerInterceptor to log the query metrics during a http request
lifecycle using Apache Commons Logging.CommonsQueryCountLoggingServletFilter,
CommonsQueryCountLoggingRequestListener| Constructor and Description |
|---|
CommonsQueryCountLoggingHandlerInterceptor() |
CommonsQueryCountLoggingHandlerInterceptor(CommonsLogLevel logLevel) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
resetLogger(String loggerName)
Callback method to reset the logger object in concrete class when log name is specified.
|
void |
setLog(org.apache.commons.logging.Log log)
Override
Log instance. |
void |
setLogLevel(CommonsLogLevel logLevel) |
protected void |
writeLog(String logEntry) |
afterCompletion, setClearQueryCounter, setLogFormatter, setLoggerName, setWriteAsJsonpublic CommonsQueryCountLoggingHandlerInterceptor()
public CommonsQueryCountLoggingHandlerInterceptor(CommonsLogLevel logLevel)
protected void writeLog(String logEntry)
writeLog in class AbstractQueryCountLoggingHandlerInterceptorpublic void setLogLevel(CommonsLogLevel logLevel)
protected void resetLogger(String loggerName)
AbstractQueryCountLoggingHandlerInterceptorresetLogger in class AbstractQueryCountLoggingHandlerInterceptorloggerName - logger namepublic void setLog(org.apache.commons.logging.Log log)
Log instance.log - new log instanceCopyright © 2018. All rights reserved.