net.csdn.common.logging.log4j
Class Log4jCSLogger

java.lang.Object
  extended by net.csdn.common.logging.support.AbstractCSLogger
      extended by net.csdn.common.logging.log4j.Log4jCSLogger
All Implemented Interfaces:
CSLogger

public class Log4jCSLogger
extends AbstractCSLogger

BlogInfo: william Date: 11-9-1 Time: 下午3:24


Constructor Summary
Log4jCSLogger(String prefix, org.apache.log4j.Logger logger)
           
 
Method Summary
 String getName()
           
protected  void internalDebug(String msg)
           
protected  void internalDebug(String msg, Throwable cause)
           
protected  void internalError(String msg)
           
protected  void internalError(String msg, Throwable cause)
           
protected  void internalHadoo(String msg)
           
protected  void internalHadoo(String msg, Throwable cause)
           
protected  void internalInfo(String msg)
           
protected  void internalInfo(String msg, Throwable cause)
           
protected  void internalTrace(String msg)
           
protected  void internalTrace(String msg, Throwable cause)
           
protected  void internalWarn(String msg)
           
protected  void internalWarn(String msg, Throwable cause)
           
 boolean isDebugEnabled()
          Returns true if a DEBUG level message is logged.
 boolean isErrorEnabled()
          Returns true if an ERROR level message is logged.
 boolean isHadooEnabled()
           
 boolean isInfoEnabled()
          Returns true if an INFO level message is logged.
 boolean isTraceEnabled()
          Returns true if a TRACE level message is logged.
 boolean isWarnEnabled()
          Returns true if a WARN level message is logged.
 
Methods inherited from class net.csdn.common.logging.support.AbstractCSLogger
debug, debug, error, error, getPrefix, hadoo, hadoo, info, info, trace, trace, warn, warn
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Log4jCSLogger

public Log4jCSLogger(String prefix,
                     org.apache.log4j.Logger logger)
Method Detail

getName

public String getName()

isTraceEnabled

public boolean isTraceEnabled()
Description copied from interface: CSLogger
Returns true if a TRACE level message is logged.


isDebugEnabled

public boolean isDebugEnabled()
Description copied from interface: CSLogger
Returns true if a DEBUG level message is logged.


isInfoEnabled

public boolean isInfoEnabled()
Description copied from interface: CSLogger
Returns true if an INFO level message is logged.


isWarnEnabled

public boolean isWarnEnabled()
Description copied from interface: CSLogger
Returns true if a WARN level message is logged.


isErrorEnabled

public boolean isErrorEnabled()
Description copied from interface: CSLogger
Returns true if an ERROR level message is logged.


isHadooEnabled

public boolean isHadooEnabled()

internalHadoo

protected void internalHadoo(String msg)
Specified by:
internalHadoo in class AbstractCSLogger

internalHadoo

protected void internalHadoo(String msg,
                             Throwable cause)
Specified by:
internalHadoo in class AbstractCSLogger

internalTrace

protected void internalTrace(String msg)
Specified by:
internalTrace in class AbstractCSLogger

internalTrace

protected void internalTrace(String msg,
                             Throwable cause)
Specified by:
internalTrace in class AbstractCSLogger

internalDebug

protected void internalDebug(String msg)
Specified by:
internalDebug in class AbstractCSLogger

internalDebug

protected void internalDebug(String msg,
                             Throwable cause)
Specified by:
internalDebug in class AbstractCSLogger

internalInfo

protected void internalInfo(String msg)
Specified by:
internalInfo in class AbstractCSLogger

internalInfo

protected void internalInfo(String msg,
                            Throwable cause)
Specified by:
internalInfo in class AbstractCSLogger

internalWarn

protected void internalWarn(String msg)
Specified by:
internalWarn in class AbstractCSLogger

internalWarn

protected void internalWarn(String msg,
                            Throwable cause)
Specified by:
internalWarn in class AbstractCSLogger

internalError

protected void internalError(String msg)
Specified by:
internalError in class AbstractCSLogger

internalError

protected void internalError(String msg,
                             Throwable cause)
Specified by:
internalError in class AbstractCSLogger


Copyright © 2014. All Rights Reserved.