Class Log4j2Impl
- java.lang.Object
-
- com.alibaba.druid.support.logging.Log4j2Impl
-
-
Constructor Summary
Constructors Constructor Description Log4j2Impl(String loggerName)Log4j2Impl(org.apache.logging.log4j.Logger log)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddebug(String s)voiddebug(String s, Throwable e)voiderror(String s)voiderror(String s, Throwable e)intgetDebugCount()intgetErrorCount()intgetInfoCount()org.apache.logging.log4j.LoggergetLog()intgetWarnCount()voidinfo(String msg)booleanisDebugEnabled()booleanisErrorEnabled()booleanisInfoEnabled()booleanisWarnEnabled()voidresetStat()StringtoString()voidwarn(String s)voidwarn(String s, Throwable e)
-
-
-
Constructor Detail
-
Log4j2Impl
public Log4j2Impl(org.apache.logging.log4j.Logger log)
- Parameters:
log- the Log instance to be used for logging- Since:
- 0.2.21
-
Log4j2Impl
public Log4j2Impl(String loggerName)
-
-
Method Detail
-
getLog
public org.apache.logging.log4j.Logger getLog()
-
isDebugEnabled
public boolean isDebugEnabled()
- Specified by:
isDebugEnabledin interfaceLog
-
getWarnCount
public int getWarnCount()
- Specified by:
getWarnCountin interfaceLog
-
getErrorCount
public int getErrorCount()
- Specified by:
getErrorCountin interfaceLog
-
getDebugCount
public int getDebugCount()
- Specified by:
getDebugCountin interfaceLog
-
isInfoEnabled
public boolean isInfoEnabled()
- Specified by:
isInfoEnabledin interfaceLog
-
isWarnEnabled
public boolean isWarnEnabled()
- Specified by:
isWarnEnabledin interfaceLog
-
isErrorEnabled
public boolean isErrorEnabled()
- Specified by:
isErrorEnabledin interfaceLog
-
getInfoCount
public int getInfoCount()
- Specified by:
getInfoCountin interfaceLog
-
-