Android Logcat 封装类
来源:互联网 发布:如何组建淘宝团队 编辑:程序博客网 时间:2024/06/05 06:59
简单日志封装类:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
public
final
class
CLog {
public
static
final
boolean
DEBUG =
true
;
private
CLog() {
}
public
static
void
d(String tag, String desc) {
if
(DEBUG)
Log.d(tag, desc);
}
public
static
void
d(String tag, String desc, Throwable tr) {
if
(DEBUG)
Log.d(tag, desc, tr);
}
public
static
void
v(String tag, String desc) {
if
(DEBUG)
Log.v(tag, desc);
}
public
static
void
v(String tag, String desc, Throwable tr) {
if
(DEBUG)
Log.v(tag, desc);
}
public
static
void
w(String tag, String desc) {
if
(DEBUG)
Log.w(tag, desc);
}
public
static
void
w(String tag, Throwable ioe) {
if
(DEBUG)
Log.w(tag, ioe);
}
public
static
void
w(String tag, String desc, Throwable e) {
if
(DEBUG)
Log.w(tag, desc, e);
}
public
static
void
i(String tag, String desc) {
if
(DEBUG)
Log.i(tag, desc);
}
public
static
void
i(String tag, String desc, Throwable tr) {
if
(DEBUG)
Log.i(tag, desc, tr);
}
public
static
void
e(String tag, String desc) {
if
(DEBUG)
Log.e(tag, desc);
}
public
static
void
e(String tag, String desc, Throwable tr) {
if
(DEBUG)
Log.e(tag, desc, tr);
}
}
0 0
- Android Logcat 封装类
- Android L-Logcat统一管理类
- 如何控制打印Logcat打印信息?封装Logcat的简单工具类就可以了
- android logCat
- android logcat
- Android Logcat
- [Android]logcat
- Android LogCat
- Android logcat
- Android logcat
- android---logcat
- Android--Logcat
- Android Logcat
- Logcat输出2次封装
- android/mydroid/system/core/logcat/logcat.cpp
- Android开发使用LogCat,LogCat常见问题
- 安卓 logcat设置 Android logcat Settings
- Android Logcat的使用
- Java实现数字排列
- 最多n次购买时股票最大收益问题
- mybatis+spring的TODO小项目记录(四)使用github管理代码
- 2017京东校招终结者问题
- 十一javascript篇之数组,变量,函数调用说明案例实战
- Android Logcat 封装类
- C#的WinForm开发监控系统案例
- RGB/YUV格式详解
- 使用SVG中的Symbol元素制作Icon
- 关于页面CSS样式问题
- pyqt4原始例程--调用QtDesigner生成的子函数
- iBET Online Casino – XPG Live Casino Game Introduction(iBET, iBET Online Casino, Live Casino Game In
- 在数据库中,进行了插入数据,如果未commit就关掉数据库了
- Java反射三 构造方法