Class Log4j2Impl
java.lang.Object
com.alibaba.druid.support.logging.Log4j2Impl
- All Implemented Interfaces:
Log
-
Constructor Summary
ConstructorsConstructorDescriptionLog4j2Impl(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:
isDebugEnabledin interfaceLog
-
error
-
error
-
debug
-
debug
-
warn
-
warn
-
getWarnCount
public int getWarnCount()- Specified by:
getWarnCountin interfaceLog
-
getErrorCount
public int getErrorCount()- Specified by:
getErrorCountin interfaceLog
-
resetStat
public void resetStat() -
getDebugCount
public int getDebugCount()- Specified by:
getDebugCountin interfaceLog
-
isInfoEnabled
public boolean isInfoEnabled()- Specified by:
isInfoEnabledin interfaceLog
-
info
-
isWarnEnabled
public boolean isWarnEnabled()- Specified by:
isWarnEnabledin interfaceLog
-
isErrorEnabled
public boolean isErrorEnabled()- Specified by:
isErrorEnabledin interfaceLog
-
getInfoCount
public int getInfoCount()- Specified by:
getInfoCountin interfaceLog
-
toString
-