public class CommonsSlowQueryListener extends AbstractSlowQueryLoggingListener
SlowQueryListener.RunningQueryContext| Modifier and Type | Field and Description |
|---|---|
protected org.apache.commons.logging.Log |
log |
protected CommonsLogLevel |
logLevel |
prefix, queryLogEntryCreator, writeConnectionId, writeDataSourceName, writeIsolationexecutor, inExecution, stopwatchFactory, threshold, thresholdTimeUnit, useDaemonThreadDEFAULT| Constructor and Description |
|---|
CommonsSlowQueryListener() |
CommonsSlowQueryListener(long threshold,
TimeUnit thresholdTimeUnit) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.commons.logging.Log |
getLog() |
CommonsLogLevel |
getLogLevel() |
void |
setLog(org.apache.commons.logging.Log log) |
void |
setLog(String logName) |
void |
setLogLevel(CommonsLogLevel logLevel) |
protected void |
writeLog(String message) |
getQueryLogEntryCreator, onSlowQuery, setQueryLogEntryCreator, setWriteConnectionId, setWriteDataSourceName, setWriteIsolationafterQuery, beforeQuery, getExecutionInfoKey, getExecutor, getThreshold, getThresholdTimeUnit, setStopwatchFactory, setThreshold, setThresholdTimeUnit, setUseDaemonThreadprotected org.apache.commons.logging.Log log
protected CommonsLogLevel logLevel
public CommonsSlowQueryListener()
public CommonsSlowQueryListener(long threshold,
TimeUnit thresholdTimeUnit)
protected void writeLog(String message)
writeLog in class AbstractSlowQueryLoggingListenerpublic void setLogLevel(CommonsLogLevel logLevel)
public void setLog(String logName)
public void setLog(org.apache.commons.logging.Log log)
public org.apache.commons.logging.Log getLog()
public CommonsLogLevel getLogLevel()
Copyright © 2024. All rights reserved.