| 构造器和说明 |
|---|
Group() |
| 限定符和类型 | 方法和说明 |
|---|---|
Group |
add(Log log) |
void |
debug(String msg)
Log a message at the DEBUG level.
|
void |
debug(String format,
Object... arguments)
Log a message at the DEBUG level according to the specified format
and arguments.
|
void |
debug(String format,
Object arg)
Log a message at the DEBUG level according to the specified format
and argument.
|
void |
debug(String format,
Object arg1,
Object arg2)
Log a message at the DEBUG level according to the specified format
and arguments.
|
void |
debug(String msg,
Throwable t)
Log an exception (throwable) at the DEBUG level with an
accompanying message.
|
void |
error(String msg)
Log a message at the ERROR level.
|
void |
error(String format,
Object... arguments)
Log a message at the ERROR level according to the specified format
and arguments.
|
void |
error(String format,
Object arg)
Log a message at the ERROR level according to the specified format
and argument.
|
void |
error(String format,
Object arg1,
Object arg2)
Log a message at the ERROR level according to the specified format
and arguments.
|
void |
error(String msg,
Throwable t)
Log an exception (throwable) at the ERROR level with an
accompanying message.
|
Class<?> |
getClazz() |
String |
getName() |
void |
info(String msg)
Log a message at the INFO level.
|
void |
info(String format,
Object... arguments)
Log a message at the INFO level according to the specified format
and arguments.
|
void |
info(String format,
Object arg)
Log a message at the INFO level according to the specified format
and argument.
|
void |
info(String format,
Object arg1,
Object arg2)
Log a message at the INFO level according to the specified format
and arguments.
|
void |
info(String msg,
Throwable t)
Log an exception (throwable) at the INFO level with an
accompanying message.
|
boolean |
isDebugEnabled()
Is the logger instance enabled for the DEBUG level?
|
boolean |
isErrorEnabled()
Is the logger instance enabled for the ERROR level?
|
boolean |
isInfoEnabled()
Is the logger instance enabled for the INFO level?
|
boolean |
isTraceEnabled()
Is the logger instance enabled for the TRACE level?
|
boolean |
isWarnEnabled()
Is the logger instance enabled for the WARN level?
|
void |
setClazz(Class<?> clazz) |
void |
setName(String name) |
void |
trace(String msg)
Log a message at the TRACE level.
|
void |
trace(String format,
Object... arguments)
Log a message at the TRACE level according to the specified format
and arguments.
|
void |
trace(String format,
Object arg)
Log a message at the TRACE level according to the specified format
and argument.
|
void |
trace(String format,
Object arg1,
Object arg2)
Log a message at the TRACE level according to the specified format
and arguments.
|
void |
trace(String msg,
Throwable t)
Log an exception (throwable) at the TRACE level with an
accompanying message.
|
void |
warn(String msg)
Log a message at the WARN level.
|
void |
warn(String format,
Object... arguments)
Log a message at the WARN level according to the specified format
and arguments.
|
void |
warn(String format,
Object arg)
Log a message at the WARN level according to the specified format
and argument.
|
void |
warn(String format,
Object arg1,
Object arg2)
Log a message at the WARN level according to the specified format
and arguments.
|
void |
warn(String msg,
Throwable t)
Log an exception (throwable) at the WARN level with an
accompanying message.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisEnabledForLevelpublic Class<?> getClazz()
public void setName(String name)
public void setClazz(Class<?> clazz)
public boolean isTraceEnabled()
LogisTraceEnabled 在接口中 Logpublic void trace(String format, Object arg)
LogThis form avoids superfluous object creation when the logger is disabled for the TRACE level.
public void trace(String format, Object arg1, Object arg2)
LogThis form avoids superfluous object creation when the logger is disabled for the TRACE level.
public void trace(String format, Object... arguments)
LogThis form avoids superfluous string concatenation when the logger
is disabled for the TRACE 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 TRACE. The variants taking one and
two arguments exist solely in order to avoid this hidden cost.
public void trace(String msg, Throwable t)
Logpublic boolean isDebugEnabled()
LogisDebugEnabled 在接口中 Logpublic void debug(String format, Object arg)
LogThis form avoids superfluous object creation when the logger is disabled for the DEBUG level.
public void debug(String format, Object arg1, Object arg2)
LogThis form avoids superfluous object creation when the logger is disabled for the DEBUG level.
public void debug(String format, Object... arguments)
LogThis form avoids superfluous string concatenation when the logger
is disabled for the DEBUG 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 DEBUG. The variants taking
one and two
arguments exist solely in order to avoid this hidden cost.
public void debug(String msg, Throwable t)
Logpublic boolean isInfoEnabled()
LogisInfoEnabled 在接口中 Logpublic void info(String format, Object arg)
LogThis form avoids superfluous object creation when the logger is disabled for the INFO level.
public void info(String format, Object arg1, Object arg2)
LogThis form avoids superfluous object creation when the logger is disabled for the INFO level.
public void info(String format, Object... arguments)
LogThis form avoids superfluous string concatenation when the logger
is disabled for the INFO 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 INFO. The variants taking
one and two
arguments exist solely in order to avoid this hidden cost.
public void info(String msg, Throwable t)
Logpublic boolean isWarnEnabled()
LogisWarnEnabled 在接口中 Logpublic void warn(String format, Object arg)
LogThis form avoids superfluous object creation when the logger is disabled for the WARN level.
public void warn(String format, Object arg1, Object arg2)
LogThis form avoids superfluous object creation when the logger is disabled for the WARN level.
public void warn(String format, Object... arguments)
LogThis form avoids superfluous string concatenation when the logger
is disabled for the WARN 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 WARN. The variants taking
one and two
arguments exist solely in order to avoid this hidden cost.
public void warn(String msg, Throwable t)
Logpublic boolean isErrorEnabled()
LogisErrorEnabled 在接口中 Logpublic void error(String format, Object arg)
LogThis form avoids superfluous object creation when the logger is disabled for the ERROR level.
public void error(String format, Object arg1, Object arg2)
LogThis form avoids superfluous object creation when the logger is disabled for the ERROR level.
public void error(String format, Object... arguments)
LogThis form avoids superfluous string concatenation when the logger
is disabled for the ERROR 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 ERROR. The variants taking
one and two
arguments exist solely in order to avoid this hidden cost.
Copyright © 2025. All rights reserved.