Class Log4j2Impl
java.lang.Object
com.alibaba.druid.support.logging.Log4j2Impl
- All Implemented Interfaces:
Log
-
Constructor Summary
ConstructorDescriptionLog4j2Impl
(String loggerName) Log4j2Impl
(org.apache.logging.log4j.Logger log) -
Method Summary
-
Constructor Details
-
Log4j2Impl
public Log4j2Impl(org.apache.logging.log4j.Logger log) - Parameters:
log
-- Since:
- 0.2.21
-
Log4j2Impl
-
-
Method Details
-
getLog
public org.apache.logging.log4j.Logger getLog() -
isDebugEnabled
public boolean isDebugEnabled()- Specified by:
isDebugEnabled
in interfaceLog
-
error
-
error
-
debug
-
debug
-
warn
-
warn
-
getWarnCount
public int getWarnCount()- Specified by:
getWarnCount
in interfaceLog
-
getErrorCount
public int getErrorCount()- Specified by:
getErrorCount
in interfaceLog
-
resetStat
public void resetStat() -
getDebugCount
public int getDebugCount()- Specified by:
getDebugCount
in interfaceLog
-
isInfoEnabled
public boolean isInfoEnabled()- Specified by:
isInfoEnabled
in interfaceLog
-
info
-
isWarnEnabled
public boolean isWarnEnabled()- Specified by:
isWarnEnabled
in interfaceLog
-
isErrorEnabled
public boolean isErrorEnabled()- Specified by:
isErrorEnabled
in interfaceLog
-
getInfoCount
public int getInfoCount()- Specified by:
getInfoCount
in interfaceLog
-
toString
-