|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectin.srain.cube.util.CLog
public class CLog
An encapsulation of Log, enable log level and print log with parameters.
| Field Summary | |
|---|---|
static int |
LEVEL_DEBUG
|
static int |
LEVEL_ERROR
|
static int |
LEVEL_FATAL
|
static int |
LEVEL_INFO
|
static int |
LEVEL_VERBOSE
|
static int |
LEVEL_WARNING
|
| Constructor Summary | |
|---|---|
CLog()
|
|
| Method Summary | |
|---|---|
static void |
d(String tag,
String msg)
Send a DEBUG log message |
static void |
d(String tag,
String msg,
Object... args)
Send a DEBUG log message |
static void |
d(String tag,
String msg,
Throwable throwable)
Send a DEBUG log message |
static void |
e(String tag,
String msg)
Send an ERROR log message |
static void |
e(String tag,
String msg,
Object... args)
Send an ERROR log message |
static void |
e(String tag,
String msg,
Throwable throwable)
Send an ERROR log message |
static void |
f(String tag,
String msg)
Send a FATAL ERROR log message |
static void |
f(String tag,
String msg,
Object... args)
Send a FATAL ERROR log message |
static void |
f(String tag,
String msg,
Throwable throwable)
Send a FATAL ERROR log message |
static void |
i(String tag,
String msg)
Send an INFO log message |
static void |
i(String tag,
String msg,
Object... args)
Send an INFO log message |
static void |
i(String tag,
String msg,
Throwable throwable)
Send an INFO log message |
static void |
setLogLevel(int level)
set log level, the level lower than this level will not be logged |
static void |
v(String tag,
String msg)
Send a VERBOSE log message. |
static void |
v(String tag,
String msg,
Object... args)
Send a VERBOSE log message. |
static void |
v(String tag,
String msg,
Throwable throwable)
Send a VERBOSE log message. |
static void |
w(String tag,
String msg)
Send a WARNING log message |
static void |
w(String tag,
String msg,
Object... args)
Send a WARNING log message |
static void |
w(String tag,
String msg,
Throwable throwable)
Send a WARNING log message |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int LEVEL_VERBOSE
public static final int LEVEL_DEBUG
public static final int LEVEL_INFO
public static final int LEVEL_WARNING
public static final int LEVEL_ERROR
public static final int LEVEL_FATAL
| Constructor Detail |
|---|
public CLog()
| Method Detail |
|---|
public static void setLogLevel(int level)
level -
public static void v(String tag,
String msg)
tag - msg -
public static void v(String tag,
String msg,
Throwable throwable)
tag - msg - throwable -
public static void v(String tag,
String msg,
Object... args)
tag - msg - args -
public static void d(String tag,
String msg)
tag - msg -
public static void d(String tag,
String msg,
Object... args)
tag - msg - args -
public static void d(String tag,
String msg,
Throwable throwable)
tag - msg - throwable -
public static void i(String tag,
String msg)
tag - msg -
public static void i(String tag,
String msg,
Object... args)
tag - msg - args -
public static void i(String tag,
String msg,
Throwable throwable)
tag - msg -
public static void w(String tag,
String msg)
tag - msg -
public static void w(String tag,
String msg,
Object... args)
tag - msg - args -
public static void w(String tag,
String msg,
Throwable throwable)
tag - msg - throwable -
public static void e(String tag,
String msg)
tag - msg -
public static void e(String tag,
String msg,
Object... args)
tag - msg - args -
public static void e(String tag,
String msg,
Throwable throwable)
tag - msg - throwable -
public static void f(String tag,
String msg)
tag - msg -
public static void f(String tag,
String msg,
Object... args)
tag - msg - args -
public static void f(String tag,
String msg,
Throwable throwable)
tag - msg - throwable -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||