Class Log4jImpl
- java.lang.Object
-
- com.alibaba.druid.support.logging.Log4jImpl
-
-
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.log4j.LoggergetLog()intgetWarnCount()voidinfo(String msg)booleanisDebugEnabled()booleanisErrorEnabled()booleanisInfoEnabled()booleanisWarnEnabled()voidresetStat()StringtoString()voidwarn(String s)voidwarn(String s, Throwable e)
-
-
-
Constructor Detail
-
Log4jImpl
public Log4jImpl(org.apache.log4j.Logger log)
- Parameters:
log- the Log instance to be used for logging- Since:
- 0.2.21
-
Log4jImpl
public Log4jImpl(String loggerName)
-
-
Method Detail
-
getLog
public org.apache.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
-
-