public final class LogUtils extends Object
| 构造器和说明 |
|---|
LogUtils() |
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
debug(Object object,
String message)
Debug.
|
static void |
debug(String message)
Debug.
|
static void |
debug(String tag,
String msg)
记录“debug”级别的信息
|
static void |
error(Object object,
String message)
Error.
|
static void |
error(Object object,
Throwable e)
Error.
|
static void |
error(String message)
Error.
|
static void |
error(String tag,
String msg)
记录“error”级别的信息
|
static void |
error(Throwable e)
Error.
|
static String |
getDebugTag() |
static boolean |
isDebug() |
static void |
setDebugTag(String debugTag) |
static void |
setIsDebug(boolean isDebug) |
static void |
startMethodTracing()
在某个方法中调用生成.trace文件。
|
static void |
stopMethodTracing()
Stop method tracing.
|
static String |
toStackTraceString(Throwable throwable)
To stack trace string string.
|
static void |
verbose(Object object,
String message)
Verbose.
|
static void |
verbose(String message)
Verbose.
|
static void |
verbose(String tag,
String msg)
记录“verbose”级别的信息
|
static void |
warn(Object object,
String message)
Warn.
|
static void |
warn(Object object,
Throwable e)
Warn.
|
static void |
warn(String message)
Warn.
|
static void |
warn(String tag,
String msg)
记录“warn”级别的信息
|
static void |
warn(Throwable e)
Warn.
|
public static void setIsDebug(boolean isDebug)
public static boolean isDebug()
public static void setDebugTag(String debugTag)
public static String getDebugTag()
public static void verbose(String message)
message - the messagepublic static void verbose(Object object, String message)
object - the objectmessage - the messagepublic static void verbose(String tag, String msg)
tag - the tagmsg - the msgpublic static void debug(String message)
message - the messagepublic static void debug(Object object, String message)
object - the objectmessage - the messagepublic static void debug(String tag, String msg)
tag - the tagmsg - the msgpublic static void warn(Throwable e)
e - the epublic static void warn(String message)
message - the messagepublic static void warn(Object object, String message)
object - the objectmessage - the messagepublic static void error(Throwable e)
e - the epublic static void error(String message)
message - the messagepublic static void error(Object object, String message)
object - the objectmessage - the messagepublic static void error(String tag, String msg)
tag - the tagmsg - the msgpublic static void startMethodTracing()
stopMethodTracing()public static void stopMethodTracing()