com.alibaba.druid.support.logging
类 Log4jImpl

java.lang.Object
  继承者 com.alibaba.druid.support.logging.Log4jImpl
所有已实现的接口:
Log

public class Log4jImpl
extends Object
implements Log


构造方法摘要
Log4jImpl(org.apache.log4j.Logger log)
           
Log4jImpl(String loggerName)
           
 
方法摘要
 void debug(String s)
           
 void debug(String s, Throwable e)
           
 void error(String s)
           
 void error(String s, Throwable e)
           
 int getDebugCount()
           
 int getErrorCount()
           
 int getInfoCount()
           
 int getWarnCount()
           
 void info(String msg)
           
 boolean isDebugEnabled()
           
 boolean isInfoEnabled()
           
 boolean isWarnEnabled()
           
 void resetStat()
           
 String toString()
           
 void warn(String s)
           
 void warn(String s, Throwable e)
           
 
从类 java.lang.Object 继承的方法
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

构造方法详细信息

Log4jImpl

public Log4jImpl(org.apache.log4j.Logger log)
参数:
log -
从以下版本开始:
0.2.21

Log4jImpl

public Log4jImpl(String loggerName)
方法详细信息

isDebugEnabled

public boolean isDebugEnabled()
指定者:
接口 Log 中的 isDebugEnabled

error

public void error(String s,
                  Throwable e)
指定者:
接口 Log 中的 error

error

public void error(String s)
指定者:
接口 Log 中的 error

debug

public void debug(String s)
指定者:
接口 Log 中的 debug

debug

public void debug(String s,
                  Throwable e)
指定者:
接口 Log 中的 debug

warn

public void warn(String s)
指定者:
接口 Log 中的 warn

warn

public void warn(String s,
                 Throwable e)
指定者:
接口 Log 中的 warn

getWarnCount

public int getWarnCount()
指定者:
接口 Log 中的 getWarnCount

getErrorCount

public int getErrorCount()
指定者:
接口 Log 中的 getErrorCount

resetStat

public void resetStat()
指定者:
接口 Log 中的 resetStat

getDebugCount

public int getDebugCount()
指定者:
接口 Log 中的 getDebugCount

isInfoEnabled

public boolean isInfoEnabled()
指定者:
接口 Log 中的 isInfoEnabled

info

public void info(String msg)
指定者:
接口 Log 中的 info

isWarnEnabled

public boolean isWarnEnabled()
指定者:
接口 Log 中的 isWarnEnabled

getInfoCount

public int getInfoCount()
指定者:
接口 Log 中的 getInfoCount

toString

public String toString()
覆盖:
Object 中的 toString


Copyright © 2013-2014 Alibaba Group. All Rights Reserved.