public interface Logger
The universal logger SPI interface.
Notice: the placeholder only supports the most popular placeholder convention (slf4j). So, if you're not using slf4j, you should create adapters compatible with placeholders "{}".
| Modifier and Type | Method and Description |
|---|---|
void |
debug(String format,
Object... arguments)
Log a message at the DEBUG level according to the specified format
and arguments.
|
void |
debug(String msg,
Throwable e)
Log an exception (throwable) at the DEBUG level with an
accompanying message.
|
void |
error(String format,
Object... arguments)
Log a message at the ERROR level according to the specified format
and arguments.
|
void |
error(String msg,
Throwable e)
Log an exception (throwable) at the ERROR level with an
accompanying message.
|
void |
info(String format,
Object... arguments)
Log a message at the INFO level according to the specified format
and arguments.
|
void |
info(String msg,
Throwable e)
Log an exception (throwable) at the INFO level with an
accompanying message.
|
void |
trace(String format,
Object... arguments)
Log a message at the TRACE level according to the specified format
and arguments.
|
void |
trace(String msg,
Throwable e)
Log an exception (throwable) at the TRACE level with an
accompanying message.
|
void |
warn(String format,
Object... arguments)
Log a message at the WARN level according to the specified format
and arguments.
|
void |
warn(String msg,
Throwable e)
Log an exception (throwable) at the WARN level with an
accompanying message.
|
void info(String format, Object... arguments)
format - the format stringarguments - a list of argumentsvoid info(String msg, Throwable e)
msg - the message accompanying the exceptione - the exception (throwable) to logvoid warn(String format, Object... arguments)
format - the format stringarguments - a list of argumentsvoid warn(String msg, Throwable e)
msg - the message accompanying the exceptione - the exception (throwable) to logvoid trace(String format, Object... arguments)
format - the format stringarguments - a list of argumentsvoid trace(String msg, Throwable e)
msg - the message accompanying the exceptione - the exception (throwable) to logvoid debug(String format, Object... arguments)
format - the format stringarguments - a list of argumentsvoid debug(String msg, Throwable e)
msg - the message accompanying the exceptione - the exception (throwable) to logvoid error(String format, Object... arguments)
format - the format stringarguments - a list of argumentsCopyright © 2021 Alibaba Group. All rights reserved.