public class Log4jQueryCountLoggingHandlerInterceptor extends AbstractQueryCountLoggingHandlerInterceptor
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.logging.log4j.Logger |
log |
protected Log4jLogLevel |
logLevel |
| Constructor and Description |
|---|
Log4jQueryCountLoggingHandlerInterceptor() |
Log4jQueryCountLoggingHandlerInterceptor(Log4jLogLevel 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 |
setLogger(org.apache.logging.log4j.Logger logger)
Override
Logger instance. |
void |
setLogLevel(Log4jLogLevel logLevel) |
protected void |
writeLog(String logEntry) |
afterCompletion, setClearQueryCounter, setLogFormatter, setLoggerName, setWriteAsJsonprotected org.apache.logging.log4j.Logger log
protected Log4jLogLevel logLevel
public Log4jQueryCountLoggingHandlerInterceptor()
public Log4jQueryCountLoggingHandlerInterceptor(Log4jLogLevel logLevel)
protected void writeLog(String logEntry)
writeLog in class AbstractQueryCountLoggingHandlerInterceptorpublic void setLogLevel(Log4jLogLevel logLevel)
protected void resetLogger(String loggerName)
AbstractQueryCountLoggingHandlerInterceptorresetLogger in class AbstractQueryCountLoggingHandlerInterceptorloggerName - logger namepublic void setLogger(org.apache.logging.log4j.Logger logger)
Logger instance.logger - new log instanceCopyright © 2022. All rights reserved.