Andorid studio日志库使用

头文件

import android.util.Log;

使用函数

verbose模式,打印最详细的日志

Log.v(tag,message); 

debug的日志

Log.d(tag,message);

info的日志

Log.i(tag,message)

warn的日志

Log.w(tag,message);

error的日志

Log.e(tag,message);

根据首字母对应VERBOSE,DEBUG,INFO,WARN,ERROR

猜你喜欢

转载自blog.csdn.net/gls_nuaa/article/details/131499532
今日推荐