|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.foxinmy.weixin4j.logging.AbstractInternalLogger
public abstract class AbstractInternalLogger
A skeletal implementation of InternalLogger. This class implements
all methods that have a InternalLogLevel parameter by default to call
specific logger methods such as InternalLogger.info(String) or InternalLogger.isInfoEnabled().
| Method Summary | |
|---|---|
boolean |
isEnabled(InternalLogLevel level)
Is the logger instance enabled for the specified level? |
void |
log(InternalLogLevel level,
String msg)
Log a message at the specified level. |
void |
log(InternalLogLevel level,
String format,
Object... arguments)
Log a message at the specified level according to the specified format
and arguments. |
void |
log(InternalLogLevel level,
String format,
Object arg)
Log a message at the specified level according to the specified format
and argument. |
void |
log(InternalLogLevel level,
String format,
Object argA,
Object argB)
Log a message at the specified level according to the specified format
and arguments. |
void |
log(InternalLogLevel level,
String msg,
Throwable cause)
Log an exception (throwable) at the specified level with an
accompanying message. |
String |
name()
Return the name of this InternalLogger instance. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.foxinmy.weixin4j.logging.InternalLogger |
|---|
debug, debug, debug, debug, debug, error, error, error, error, error, info, info, info, info, info, isDebugEnabled, isErrorEnabled, isInfoEnabled, isTraceEnabled, isWarnEnabled, trace, trace, trace, trace, trace, warn, warn, warn, warn, warn |
| Method Detail |
|---|
public String name()
InternalLoggerInternalLogger instance.
name in interface InternalLoggerpublic boolean isEnabled(InternalLogLevel level)
InternalLoggerlevel?
isEnabled in interface InternalLoggerlevel,
false otherwise.
public void log(InternalLogLevel level,
String msg,
Throwable cause)
InternalLoggerlevel with an
accompanying message.
log in interface InternalLoggermsg - the message accompanying the exceptioncause - the exception (throwable) to log
public void log(InternalLogLevel level,
String msg)
InternalLoggerlevel.
log in interface InternalLoggermsg - the message string to be logged
public void log(InternalLogLevel level,
String format,
Object arg)
InternalLoggerlevel according to the specified format
and argument.
This form avoids superfluous object creation when the logger
is disabled for the specified level.
log in interface InternalLoggerformat - the format stringarg - the argument
public void log(InternalLogLevel level,
String format,
Object argA,
Object argB)
InternalLoggerlevel according to the specified format
and arguments.
This form avoids superfluous object creation when the logger
is disabled for the specified level.
log in interface InternalLoggerformat - the format stringargA - the first argumentargB - the second argument
public void log(InternalLogLevel level,
String format,
Object... arguments)
InternalLoggerlevel according to the specified format
and arguments.
This form avoids superfluous string concatenation when the logger
is disabled for the specified level. However, this variant incurs the hidden
(and relatively small) cost of creating an Object[] before invoking the method,
even if this logger is disabled for the specified level. The variants taking
one and
two arguments exist solely
in order to avoid this hidden cost.
log in interface InternalLoggerformat - the format stringarguments - a list of 3 or more argumentspublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||