public class CommonsQueryLoggingListener extends AbstractQueryLoggingListener
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.commons.logging.Log |
log |
protected CommonsLogLevel |
logLevel |
loggingCondition, queryLogEntryCreator, writeConnectionId, writeDataSourceNameDEFAULT| Constructor and Description |
|---|
CommonsQueryLoggingListener() |
| Modifier and Type | Method and Description |
|---|---|
org.apache.commons.logging.Log |
getLog() |
CommonsLogLevel |
getLogLevel() |
protected void |
resetLogger(String loggerName)
Deprecated.
use {
setLog(String)} |
void |
setLog(org.apache.commons.logging.Log log)
Override
Log instance. |
void |
setLog(String logName)
Override
Log instance with specified log name. |
void |
setLogLevel(CommonsLogLevel logLevel) |
protected void |
writeLog(String message) |
afterQuery, beforeQuery, getEntry, getQueryLogEntryCreator, setLoggerName, setLoggingCondition, setQueryLogEntryCreator, setWriteConnectionId, setWriteDataSourceNameprotected org.apache.commons.logging.Log log
protected CommonsLogLevel logLevel
protected void writeLog(String message)
writeLog in class AbstractQueryLoggingListenerpublic void setLogLevel(CommonsLogLevel logLevel)
@Deprecated protected void resetLogger(String loggerName)
setLog(String)}AbstractQueryLoggingListenerresetLogger in class AbstractQueryLoggingListenerloggerName - logger namepublic void setLog(String logName)
Log instance with specified log name.logName - log namepublic void setLog(org.apache.commons.logging.Log log)
Log instance.log - new log instancepublic org.apache.commons.logging.Log getLog()
public CommonsLogLevel getLogLevel()
Copyright © 2018. All rights reserved.