AndBase开发框架  1.6
 全部  命名空间 文件 函数 变量 枚举值 
静态 Public 成员函数 | 静态 Public 属性 | 所有成员列表
com.ab.util.AbLogUtil类 参考

静态 Public 成员函数

static void d (String tag, String message)
 
static void d (Context context, String message)
 
static void d (Class<?> clazz, String message)
 
static void i (String tag, String message)
 
static void i (Context context, String message)
 
static void i (Class<?> clazz, String message)
 
static void e (String tag, String message)
 
static void e (Context context, String message)
 
static void e (Class<?> clazz, String message)
 
static void prepareLog (String tag)
 
static void prepareLog (Context context)
 
static void prepareLog (Class<?> clazz)
 
static void d (String tag, String message, boolean printTime)
 
static void d (Context context, String message, boolean printTime)
 
static void d (Class<?> clazz, String message, boolean printTime)
 
static void debug (boolean d)
 
static void info (boolean i)
 
static void error (boolean e)
 
static void setVerbose (boolean d, boolean i, boolean e)
 
static void openAll ()
 
static void closeAll ()
 

静态 Public 属性

static boolean D = true
 
static boolean I = true
 
static boolean E = true
 
static long startLogTimeInMillis = 0
 

详细描述

© 2012 amsoft.cn 名称:AbLogUtil.java 描述:日志工具类.

作者
还如一梦中
版本
v1.0
日期
:2014-06-26 下午11:52:13

成员函数说明

static void com.ab.util.AbLogUtil.closeAll ( )
inlinestatic

关闭所有日志

参数
d
static void com.ab.util.AbLogUtil.d ( String  tag,
String  message 
)
inlinestatic

debug日志

参数
tag
message
static void com.ab.util.AbLogUtil.d ( Context  context,
String  message 
)
inlinestatic

debug日志

参数
context
message
static void com.ab.util.AbLogUtil.d ( Class<?>  clazz,
String  message 
)
inlinestatic

debug日志

参数
clazz
message
static void com.ab.util.AbLogUtil.d ( String  tag,
String  message,
boolean  printTime 
)
inlinestatic

描述:打印这次的执行时间毫秒,需要首先调用prepareLog().

参数
tag标记
message描述
printTime是否打印时间
static void com.ab.util.AbLogUtil.d ( Context  context,
String  message,
boolean  printTime 
)
inlinestatic

描述:打印这次的执行时间毫秒,需要首先调用prepareLog().

参数
tag标记
message描述
printTime是否打印时间
static void com.ab.util.AbLogUtil.d ( Class<?>  clazz,
String  message,
boolean  printTime 
)
inlinestatic

描述:打印这次的执行时间毫秒,需要首先调用prepareLog().

参数
clazz标记
message描述
printTime是否打印时间
static void com.ab.util.AbLogUtil.debug ( boolean  d)
inlinestatic

debug日志的开关

参数
d
static void com.ab.util.AbLogUtil.e ( String  tag,
String  message 
)
inlinestatic

error日志

参数
tag
message
static void com.ab.util.AbLogUtil.e ( Context  context,
String  message 
)
inlinestatic

error日志

参数
context
message
static void com.ab.util.AbLogUtil.e ( Class<?>  clazz,
String  message 
)
inlinestatic

error日志

参数
clazz
message
static void com.ab.util.AbLogUtil.error ( boolean  e)
inlinestatic

error日志的开关

参数
e
static void com.ab.util.AbLogUtil.i ( String  tag,
String  message 
)
inlinestatic

info日志

参数
tag
message
static void com.ab.util.AbLogUtil.i ( Context  context,
String  message 
)
inlinestatic

info日志

参数
context
message
static void com.ab.util.AbLogUtil.i ( Class<?>  clazz,
String  message 
)
inlinestatic

info日志

参数
clazz
message
static void com.ab.util.AbLogUtil.info ( boolean  i)
inlinestatic

info日志的开关

参数
i
static void com.ab.util.AbLogUtil.openAll ( )
inlinestatic

打开所有日志,默认全打开

参数
d
static void com.ab.util.AbLogUtil.prepareLog ( String  tag)
inlinestatic

描述:记录当前时间毫秒.

static void com.ab.util.AbLogUtil.prepareLog ( Context  context)
inlinestatic

描述:记录当前时间毫秒.

static void com.ab.util.AbLogUtil.prepareLog ( Class<?>  clazz)
inlinestatic

描述:记录当前时间毫秒.

static void com.ab.util.AbLogUtil.setVerbose ( boolean  d,
boolean  i,
boolean  e 
)
inlinestatic

设置日志的开关

参数
e

类成员变量说明

boolean com.ab.util.AbLogUtil.D = true
static

debug开关.

boolean com.ab.util.AbLogUtil.E = true
static

error开关.

boolean com.ab.util.AbLogUtil.I = true
static

info开关.

long com.ab.util.AbLogUtil.startLogTimeInMillis = 0
static

起始执行时间.


该类的文档由以下文件生成: