net.csdn.common.logging.support
Class AbstractCSLogger

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

public abstract class AbstractCSLogger
extends Object
implements CSLogger

BlogInfo: william Date: 11-9-1 Time: 下午2:39


Constructor Summary
protected AbstractCSLogger(String prefix)
           
 
Method Summary
 void debug(String msg, Object... params)
          Logs a DEBUG level message.
 void debug(String msg, Throwable cause, Object... params)
          Logs a DEBUG level message.
 void error(String msg, Object... params)
          Logs an ERROR level message.
 void error(String msg, Throwable cause, Object... params)
          Logs an ERROR level message.
 String getPrefix()
           
 void hadoo(String msg, Object... params)
           
 void hadoo(String msg, Throwable cause, Object... params)
           
 void info(String msg, Object... params)
          Logs an INFO level message.
 void info(String msg, Throwable cause, Object... params)
          Logs an INFO level message.
protected abstract  void internalDebug(String msg)
           
protected abstract  void internalDebug(String msg, Throwable cause)
           
protected abstract  void internalError(String msg)
           
protected abstract  void internalError(String msg, Throwable cause)
           
protected abstract  void internalHadoo(String msg)
           
protected abstract  void internalHadoo(String msg, Throwable cause)
           
protected abstract  void internalInfo(String msg)
           
protected abstract  void internalInfo(String msg, Throwable cause)
           
protected abstract  void internalTrace(String msg)
           
protected abstract  void internalTrace(String msg, Throwable cause)
           
protected abstract  void internalWarn(String msg)
           
protected abstract  void internalWarn(String msg, Throwable cause)
           
 void trace(String msg, Object... params)
          Logs a DEBUG level message.
 void trace(String msg, Throwable cause, Object... params)
          Logs a DEBUG level message.
 void warn(String msg, Object... params)
          Logs a WARN level message.
 void warn(String msg, Throwable cause, Object... params)
          Logs a WARN level message.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.csdn.common.logging.CSLogger
getName, isDebugEnabled, isErrorEnabled, isHadooEnabled, isInfoEnabled, isTraceEnabled, isWarnEnabled
 

Constructor Detail

AbstractCSLogger

protected AbstractCSLogger(String prefix)
Method Detail

getPrefix

public String getPrefix()
Specified by:
getPrefix in interface CSLogger

hadoo

public void hadoo(String msg,
                  Object... params)
Specified by:
hadoo in interface CSLogger

internalHadoo

protected abstract void internalHadoo(String msg)

hadoo

public void hadoo(String msg,
                  Throwable cause,
                  Object... params)
Specified by:
hadoo in interface CSLogger

internalHadoo

protected abstract void internalHadoo(String msg,
                                      Throwable cause)

trace

public void trace(String msg,
                  Object... params)
Description copied from interface: CSLogger
Logs a DEBUG level message.

Specified by:
trace in interface CSLogger

internalTrace

protected abstract void internalTrace(String msg)

trace

public void trace(String msg,
                  Throwable cause,
                  Object... params)
Description copied from interface: CSLogger
Logs a DEBUG level message.

Specified by:
trace in interface CSLogger

internalTrace

protected abstract void internalTrace(String msg,
                                      Throwable cause)

debug

public void debug(String msg,
                  Object... params)
Description copied from interface: CSLogger
Logs a DEBUG level message.

Specified by:
debug in interface CSLogger

internalDebug

protected abstract void internalDebug(String msg)

debug

public void debug(String msg,
                  Throwable cause,
                  Object... params)
Description copied from interface: CSLogger
Logs a DEBUG level message.

Specified by:
debug in interface CSLogger

internalDebug

protected abstract void internalDebug(String msg,
                                      Throwable cause)

info

public void info(String msg,
                 Object... params)
Description copied from interface: CSLogger
Logs an INFO level message.

Specified by:
info in interface CSLogger

internalInfo

protected abstract void internalInfo(String msg)

info

public void info(String msg,
                 Throwable cause,
                 Object... params)
Description copied from interface: CSLogger
Logs an INFO level message.

Specified by:
info in interface CSLogger

internalInfo

protected abstract void internalInfo(String msg,
                                     Throwable cause)

warn

public void warn(String msg,
                 Object... params)
Description copied from interface: CSLogger
Logs a WARN level message.

Specified by:
warn in interface CSLogger

internalWarn

protected abstract void internalWarn(String msg)

warn

public void warn(String msg,
                 Throwable cause,
                 Object... params)
Description copied from interface: CSLogger
Logs a WARN level message.

Specified by:
warn in interface CSLogger

internalWarn

protected abstract void internalWarn(String msg,
                                     Throwable cause)

error

public void error(String msg,
                  Object... params)
Description copied from interface: CSLogger
Logs an ERROR level message.

Specified by:
error in interface CSLogger

internalError

protected abstract void internalError(String msg)

error

public void error(String msg,
                  Throwable cause,
                  Object... params)
Description copied from interface: CSLogger
Logs an ERROR level message.

Specified by:
error in interface CSLogger

internalError

protected abstract void internalError(String msg,
                                      Throwable cause)


Copyright © 2014. All Rights Reserved.