头文件 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