public class DLog
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
DEBUG |
static int |
ERROR |
static int |
INFO |
static Logger |
logger |
static java.lang.String |
TAG_SQLiteConnection
Logging tags
|
static java.lang.String |
TAG_SQLiteConnectionPool |
static java.lang.String |
TAG_SQLiteDatabase |
static java.lang.String |
TAG_SQLiteQueryBuilder |
static java.lang.String |
TAG_SQLiteQueryCursor |
static int |
VERBOSE
Logging levels -- values match up with android.util.Log
|
static int |
WARN |
| Constructor and Description |
|---|
DLog() |
| Modifier and Type | Method and Description |
|---|---|
static void |
d(java.lang.String tag,
java.lang.String msg)
Send a DEBUG message.
|
static void |
d(java.lang.String tag,
java.lang.String formatString,
java.lang.Object... args)
Send a DEBUG message.
|
static void |
d(java.lang.String tag,
java.lang.String msg,
java.lang.Throwable tr)
Send a DEBUG message and log the exception.
|
static void |
d(java.lang.String tag,
java.lang.String formatString,
java.lang.Throwable tr,
java.lang.Object... args)
Send a DEBUG message and log the exception.
|
static void |
e(java.lang.String tag,
java.lang.String msg)
Send an ERROR message.
|
static void |
e(java.lang.String tag,
java.lang.String formatString,
java.lang.Object... args)
Send a ERROR message.
|
static void |
e(java.lang.String tag,
java.lang.String msg,
java.lang.Throwable tr)
Send a ERROR message and log the exception.
|
static void |
e(java.lang.String tag,
java.lang.String formatString,
java.lang.Throwable tr,
java.lang.Object... args)
Send a ERROR message and log the exception.
|
static void |
enableLogging(java.lang.String tag,
int logLevel)
Enable logging for a particular tag / loglevel combo
|
static void |
i(java.lang.String tag,
java.lang.String msg)
Send an INFO message.
|
static void |
i(java.lang.String tag,
java.lang.String formatString,
java.lang.Object... args)
Send an INFO message.
|
static void |
i(java.lang.String tag,
java.lang.String msg,
java.lang.Throwable tr)
Send a INFO message and log the exception.
|
static void |
i(java.lang.String tag,
java.lang.String formatString,
java.lang.Throwable tr,
java.lang.Object... args)
Send a INFO message and log the exception.
|
static void |
v(java.lang.String tag,
java.lang.String msg)
Send a VERBOSE message.
|
static void |
v(java.lang.String tag,
java.lang.String formatString,
java.lang.Object... args)
Send a VERBOSE message.
|
static void |
v(java.lang.String tag,
java.lang.String msg,
java.lang.Throwable tr)
Send a VERBOSE message and log the exception.
|
static void |
v(java.lang.String tag,
java.lang.String formatString,
java.lang.Throwable tr,
java.lang.Object... args)
Send a VERBOSE message and log the exception.
|
static void |
w(java.lang.String tag,
java.lang.String msg)
Send a WARN message.
|
static void |
w(java.lang.String tag,
java.lang.String formatString,
java.lang.Object... args)
Send a WARN message.
|
static void |
w(java.lang.String tag,
java.lang.String msg,
java.lang.Throwable tr)
Send a WARN message and log the exception.
|
static void |
w(java.lang.String tag,
java.lang.String formatString,
java.lang.Throwable tr,
java.lang.Object... args)
Send a WARN message and log the exception.
|
static void |
w(java.lang.String tag,
java.lang.Throwable tr)
Send a WARN message and log the exception.
|
public static Logger logger
public static final java.lang.String TAG_SQLiteConnection
public static final java.lang.String TAG_SQLiteConnectionPool
public static final java.lang.String TAG_SQLiteDatabase
public static final java.lang.String TAG_SQLiteQueryBuilder
public static final java.lang.String TAG_SQLiteQueryCursor
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 enableLogging(java.lang.String tag,
int logLevel)
tag - Used to identify the source of a log message. It usually identifies
the class or activity where the log call occurs.logLevel - The loglevel to enable. Anything matching this loglevel
or having a more urgent loglevel will be emitted. Eg, Log.VERBOSE.public static void v(java.lang.String tag,
java.lang.String msg)
tag - Used to identify the source of a log message. It usually identifies
the class or activity where the log call occurs.msg - The message you would like logged.public static void v(java.lang.String tag,
java.lang.String msg,
java.lang.Throwable tr)
tag - Used to identify the source of a log message. It usually identifies
the class or activity where the log call occurs.msg - The message you would like logged.tr - An exception to logpublic static void v(java.lang.String tag,
java.lang.String formatString,
java.lang.Object... args)
tag - Used to identify the source of a log message. It usually identifies
the class or activity where the log call occurs.formatString - The string you would like logged plus format specifiers.args - Variable number of Object args to be used as params to formatString.public static void v(java.lang.String tag,
java.lang.String formatString,
java.lang.Throwable tr,
java.lang.Object... args)
tag - Used to identify the source of a log message. It usually identifies
the class or activity where the log call occurs.formatString - The string you would like logged plus format specifiers.tr - An exception to logargs - Variable number of Object args to be used as params to formatString.public static void d(java.lang.String tag,
java.lang.String msg)
tag - Used to identify the source of a log message. It usually identifies
the class or activity where the log call occurs.msg - The message you would like logged.public static void d(java.lang.String tag,
java.lang.String msg,
java.lang.Throwable tr)
tag - Used to identify the source of a log message. It usually identifies
the class or activity where the log call occurs.msg - The message you would like logged.tr - An exception to logpublic static void d(java.lang.String tag,
java.lang.String formatString,
java.lang.Object... args)
tag - Used to identify the source of a log message. It usually identifies
the class or activity where the log call occurs.formatString - The string you would like logged plus format specifiers.args - Variable number of Object args to be used as params to formatString.public static void d(java.lang.String tag,
java.lang.String formatString,
java.lang.Throwable tr,
java.lang.Object... args)
tag - Used to identify the source of a log message. It usually identifies
the class or activity where the log call occurs.formatString - The string you would like logged plus format specifiers.tr - An exception to logargs - Variable number of Object args to be used as params to formatString.public static void i(java.lang.String tag,
java.lang.String msg)
tag - Used to identify the source of a log message. It usually identifies
the class or activity where the log call occurs.msg - The message you would like logged.public static void i(java.lang.String tag,
java.lang.String msg,
java.lang.Throwable tr)
tag - Used to identify the source of a log message. It usually identifies
the class or activity where the log call occurs.msg - The message you would like logged.tr - An exception to logpublic static void i(java.lang.String tag,
java.lang.String formatString,
java.lang.Object... args)
tag - Used to identify the source of a log message. It usually identifies
the class or activity where the log call occurs.formatString - The string you would like logged plus format specifiers.args - Variable number of Object args to be used as params to formatString.public static void i(java.lang.String tag,
java.lang.String formatString,
java.lang.Throwable tr,
java.lang.Object... args)
tag - Used to identify the source of a log message. It usually identifies
the class or activity where the log call occurs.formatString - The string you would like logged plus format specifiers.tr - An exception to logargs - Variable number of Object args to be used as params to formatString.public static void w(java.lang.String tag,
java.lang.String msg)
tag - Used to identify the source of a log message. It usually identifies
the class or activity where the log call occurs.msg - The message you would like logged.public static void w(java.lang.String tag,
java.lang.Throwable tr)
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 logpublic static void w(java.lang.String tag,
java.lang.String msg,
java.lang.Throwable tr)
tag - Used to identify the source of a log message. It usually identifies
the class or activity where the log call occurs.msg - The message you would like logged.tr - An exception to logpublic static void w(java.lang.String tag,
java.lang.String formatString,
java.lang.Object... args)
tag - Used to identify the source of a log message. It usually identifies
the class or activity where the log call occurs.formatString - The string you would like logged plus format specifiers.args - Variable number of Object args to be used as params to formatString.public static void w(java.lang.String tag,
java.lang.String formatString,
java.lang.Throwable tr,
java.lang.Object... args)
tag - Used to identify the source of a log message. It usually identifies
the class or activity where the log call occurs.formatString - The string you would like logged plus format specifiers.tr - An exception to logargs - Variable number of Object args to be used as params to formatString.public static void e(java.lang.String tag,
java.lang.String msg)
tag - Used to identify the source of a log message. It usually identifies
the class or activity where the log call occurs.msg - The message you would like logged.public static void e(java.lang.String tag,
java.lang.String msg,
java.lang.Throwable tr)
tag - Used to identify the source of a log message. It usually identifies
the class or activity where the log call occurs.msg - The message you would like logged.tr - An exception to logpublic static void e(java.lang.String tag,
java.lang.String formatString,
java.lang.Throwable tr,
java.lang.Object... args)
tag - Used to identify the source of a log message. It usually identifies
the class or activity where the log call occurs.formatString - The string you would like logged plus format specifiers.tr - An exception to logargs - Variable number of Object args to be used as params to formatString.public static void e(java.lang.String tag,
java.lang.String formatString,
java.lang.Object... args)
tag - Used to identify the source of a log message. It usually identifies
the class or activity where the log call occurs.formatString - The string you would like logged plus format specifiers.args - Variable number of Object args to be used as params to formatString.