public final class QCloudLogger
extends java.lang.Object
限定符和类型 | 字段和说明 |
---|---|
static int |
DEBUG
Priority constant for the println method; use LogUtils.d.
|
static int |
ERROR
Priority constant for the println method; use LogUtils.e.
|
static int |
INFO
Priority constant for the println method; use LogUtils.i.
|
static int |
VERBOSE
Priority constant for the println method; use LogUtils.v.
|
static int |
WARN
Priority constant for the println method; use LogUtils.w.
|
限定符和类型 | 方法和说明 |
---|---|
static void |
addAdapter(LogAdapter adapter)
Add a new log output pipeline.
|
static void |
d(java.lang.String tag,
java.lang.String format,
java.lang.Object... args)
Send a
DEBUG log message. |
static void |
d(java.lang.String tag,
java.lang.Throwable tr,
java.lang.String format,
java.lang.Object... args)
Send a
DEBUG log message. |
static void |
e(java.lang.String tag,
java.lang.String format,
java.lang.Object... args)
Send a
ERROR log message. |
static void |
e(java.lang.String tag,
java.lang.Throwable tr,
java.lang.String format,
java.lang.Object... args)
Send a
ERROR log message. |
static <T extends LogAdapter> |
getAdapter(java.lang.Class<T> adapterClass) |
static void |
i(java.lang.String tag,
java.lang.String format,
java.lang.Object... args)
Send a
INFO log message. |
static void |
i(java.lang.String tag,
java.lang.Throwable tr,
java.lang.String format,
java.lang.Object... args)
Send a
INFO log message. |
static void |
v(java.lang.String tag,
java.lang.String format,
java.lang.Object... args)
Send a
VERBOSE log message. |
static void |
v(java.lang.String tag,
java.lang.Throwable tr,
java.lang.String format,
java.lang.Object... args)
Send a
VERBOSE log message. |
static void |
w(java.lang.String tag,
java.lang.String format,
java.lang.Object... args)
Send a
WARN log message. |
static void |
w(java.lang.String tag,
java.lang.Throwable tr,
java.lang.String format,
java.lang.Object... args)
Send a
WARN log message. |
public static final int VERBOSE
public static final int DEBUG
public static final int INFO
public static final int WARN
public static final int ERROR
public static void addAdapter(LogAdapter adapter)
adapter
- log pipelinepublic static <T extends LogAdapter> T getAdapter(java.lang.Class<T> adapterClass)
public static void v(java.lang.String tag, java.lang.String format, java.lang.Object... args)
VERBOSE
log message.tag
- Used to identify the source of a log message. It usually identifies
the class or activity where the log call occurs.format
- The format of message you would like logged.args
- The arguments of message you would like logged.public static void v(java.lang.String tag, java.lang.Throwable tr, java.lang.String format, java.lang.Object... args)
VERBOSE
log message.tag
- Used to identify the source of a log message. It usually identifies
the class or activity where the log call occurs.tr
- An exception to log.format
- The format of message you would like logged.args
- The arguments of message you would like logged.public static void d(java.lang.String tag, java.lang.String format, java.lang.Object... args)
DEBUG
log message.tag
- Used to identify the source of a log message. It usually identifies
the class or activity where the log call occurs.format
- The format of message you would like logged.args
- The arguments of message you would like logged.public static void d(java.lang.String tag, java.lang.Throwable tr, java.lang.String format, java.lang.Object... args)
DEBUG
log message.tag
- Used to identify the source of a log message. It usually identifies
the class or activity where the log call occurs.tr
- An exception to log.format
- The format of message you would like logged.args
- The arguments of message you would like logged.public static void i(java.lang.String tag, java.lang.String format, java.lang.Object... args)
INFO
log message.tag
- Used to identify the source of a log message. It usually identifies
the class or activity where the log call occurs.format
- The format of message you would like logged.args
- The arguments of message you would like logged.public static void i(java.lang.String tag, java.lang.Throwable tr, java.lang.String format, java.lang.Object... args)
INFO
log message.tag
- Used to identify the source of a log message. It usually identifies
the class or activity where the log call occurs.tr
- An exception to log.format
- The format of message you would like logged.args
- The arguments of message you would like logged.public static void w(java.lang.String tag, java.lang.String format, java.lang.Object... args)
WARN
log message.tag
- Used to identify the source of a log message. It usually identifies
the class or activity where the log call occurs.format
- The format of message you would like logged.args
- The arguments of message you would like logged.public static void w(java.lang.String tag, java.lang.Throwable tr, java.lang.String format, java.lang.Object... args)
WARN
log message.tag
- Used to identify the source of a log message. It usually identifies
the class or activity where the log call occurs.tr
- An exception to log.format
- The format of message you would like logged.args
- The arguments of message you would like logged.public static void e(java.lang.String tag, java.lang.String format, java.lang.Object... args)
ERROR
log message.tag
- Used to identify the source of a log message. It usually identifies
the class or activity where the log call occurs.format
- The format of message you would like logged.args
- The arguments of message you would like logged.public static void e(java.lang.String tag, java.lang.Throwable tr, java.lang.String format, java.lang.Object... args)
ERROR
log message.tag
- Used to identify the source of a log message. It usually identifies
the class or activity where the log call occurs.tr
- An exception to log.format
- The format of message you would like logged.args
- The arguments of message you would like logged.