public abstract class Log
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
Log.Collector
Allows for collection of log messages (in addition to standard logging).
|
static class |
Log.Level
Tags a log message with a level.
|
| Constructor and Description |
|---|
Log() |
| Modifier and Type | Method and Description |
|---|---|
void |
debug(java.lang.String msg)
Logs
msg at the debug level. |
void |
debug(java.lang.String msg,
java.lang.Object... args)
Logs
msg at the debug level. |
void |
debug(java.lang.String msg,
java.lang.Throwable e)
Logs
msg and e at the debug level. |
void |
error(java.lang.String msg)
Logs
msg at the error level. |
void |
error(java.lang.String msg,
java.lang.Object... args)
Logs
msg at the error level. |
void |
error(java.lang.String msg,
java.lang.Throwable e)
Logs
msg and e at the error level. |
static java.lang.StringBuilder |
format(java.lang.StringBuilder into,
java.lang.Object... args)
Formats the supplied key/value arguments into the supplied string builder as
key=value, key=value, .... |
void |
info(java.lang.String msg)
Logs
msg at the info level. |
void |
info(java.lang.String msg,
java.lang.Object... args)
Logs
msg at the info level. |
void |
info(java.lang.String msg,
java.lang.Throwable e)
Logs
msg and e at the info level. |
void |
setCollector(Log.Collector collector)
Configures a log message collector.
|
void |
setMinLevel(Log.Level level)
Configures the minimum log level that will be logged.
|
void |
warn(java.lang.String msg)
Logs
msg at the warn level. |
void |
warn(java.lang.String msg,
java.lang.Object... args)
Logs
msg at the warn level. |
void |
warn(java.lang.String msg,
java.lang.Throwable e)
Logs
msg and e at the warn level. |
public static java.lang.StringBuilder format(java.lang.StringBuilder into,
java.lang.Object... args)
key=value, key=value, ....public void setCollector(Log.Collector collector)
public void setMinLevel(Log.Level level)
level will be suppressed. Note that all messages are still passed to any registered
Log.Collector, but suppressed messages are not sent to the platform logging system.public void debug(java.lang.String msg)
msg at the debug level.public void debug(java.lang.String msg,
java.lang.Object... args)
msg at the debug level.args - additional arguments formatted via format(java.lang.StringBuilder, java.lang.Object...) and appended to the message.
args may contain an exception as its lone final argument which will be logged long
with the formatted message.public void debug(java.lang.String msg,
java.lang.Throwable e)
msg and e at the debug level.public void info(java.lang.String msg)
msg at the info level.public void info(java.lang.String msg,
java.lang.Object... args)
msg at the info level.args - additional arguments formatted via format(java.lang.StringBuilder, java.lang.Object...) and appended to the message.
args may contain an exception as its lone final argument which will be logged long
with the formatted message.public void info(java.lang.String msg,
java.lang.Throwable e)
msg and e at the info level.public void warn(java.lang.String msg)
msg at the warn level.public void warn(java.lang.String msg,
java.lang.Object... args)
msg at the warn level.args - additional arguments formatted via format(java.lang.StringBuilder, java.lang.Object...) and appended to the message.
args may contain an exception as its lone final argument which will be logged long
with the formatted message.public void warn(java.lang.String msg,
java.lang.Throwable e)
msg and e at the warn level.public void error(java.lang.String msg)
msg at the error level.public void error(java.lang.String msg,
java.lang.Object... args)
msg at the error level.args - additional arguments formatted via format(java.lang.StringBuilder, java.lang.Object...) and appended to the message.
args may contain an exception as its lone final argument which will be logged long
with the formatted message.public void error(java.lang.String msg,
java.lang.Throwable e)
msg and e at the error level.Copyright © 2018. All Rights Reserved.