java.lang.Object | |
↳ | com.tencent.wcdb.support.Log |
API for WCDB log redirection.
Typically, applications call setLogger(int)
or setLogger(LogCallback)
to setup logger callback, WCDB library itself uses the rest methods to
send log outputs to the preset or user defined logger.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
interface | Log.LogCallback | User defined logger interface. |
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | LOGGER_DEFAULT | Default logger which output logs to Android system log (logcat). | |||||||||
int | LOGGER_NONE | Preset No-op logger which drops all log outputs. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
static void |
d(String tag, String msg)
Send a DEBUG log message.
| ||||||||||
static void |
d(String tag, String format, Object... args)
Send a DEBUG log message with string formatter.
| ||||||||||
static void |
e(String tag, String format, Object... args)
Send an ERROR log message with string formatter.
| ||||||||||
static void |
e(String tag, String msg)
Send an ERROR log message.
| ||||||||||
static void |
f(String tag, String msg)
Send a FATAL log message.
| ||||||||||
static void |
f(String tag, String format, Object... args)
Send a FATAL log message with string formatter.
| ||||||||||
static void |
i(String tag, String format, Object... args)
Send an INFO log message with string formatter.
| ||||||||||
static void |
i(String tag, String msg)
Send an INFO log message.
| ||||||||||
static void |
println(int priority, String tag, String msg)
Low-level logging call.
| ||||||||||
static void |
setLogger(int logger)
Use preset logger for log outputs.
| ||||||||||
static void |
setLogger(Log.LogCallback callback)
Use user defined logger for log outputs.
| ||||||||||
static void |
v(String tag, String msg)
Send a VERBOSE log message.
| ||||||||||
static void |
v(String tag, String format, Object... args)
Send a VERBOSE log message with string formatter.
| ||||||||||
static void |
w(String tag, String format, Object... args)
Send a WARN log message with string formatter.
| ||||||||||
static void |
w(String tag, String msg)
Send a WARN log message.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Default logger which output logs to Android system log (logcat).
Pass it to setLogger(int)
.
Preset No-op logger which drops all log outputs.
Pass it to setLogger(int)
.
Send a DEBUG log message. Typically called by WCDB library itself.
tag | tag of this log message |
---|---|
msg | message content |
Send a DEBUG log message with string formatter. Typically called by WCDB library itself.
tag | tag of this log message |
---|---|
format | message content |
args | format arguments |
Send an ERROR log message with string formatter. Typically called by WCDB library itself.
tag | tag of this log message |
---|---|
format | message content |
args | format arguments |
Send an ERROR log message. Typically called by WCDB library itself.
tag | tag of this log message |
---|---|
msg | message content |
Send a FATAL log message. Typically called by WCDB library itself.
tag | tag of this log message |
---|---|
msg | message content |
Send a FATAL log message with string formatter. Typically called by WCDB library itself.
tag | tag of this log message |
---|---|
format | message content |
args | format arguments |
Send an INFO log message with string formatter. Typically called by WCDB library itself.
tag | tag of this log message |
---|---|
format | message content |
args | format arguments |
Send an INFO log message. Typically called by WCDB library itself.
tag | tag of this log message |
---|---|
msg | message content |
Low-level logging call. Typically called by WCDB library itself.
priority | the priority of this log message. Use constants in Android logging API, android.util.Log |
---|---|
tag | tag of this log message |
msg | message content |
Use preset logger for log outputs.
logger | preset logger, valid values are |
---|
Use user defined logger for log outputs.
callback | logger callback |
---|
Send a VERBOSE log message. Typically called by WCDB library itself.
tag | tag of this log message |
---|---|
msg | message content |
Send a VERBOSE log message with string formatter. Typically called by WCDB library itself.
tag | tag of this log message |
---|---|
format | message content |
args | format arguments |
Send a WARN log message with string formatter. Typically called by WCDB library itself.
tag | tag of this log message |
---|---|
format | message content |
args | format arguments |
Send a WARN log message. Typically called by WCDB library itself.
tag | tag of this log message |
---|---|
msg | message content |