美文网首页
Android 之 Log 输出

Android 之 Log 输出

作者: LiKaiRabbit | 来源:发表于2017-06-29 10:46 被阅读69次

在程序中输出日志, 使用 android.util.Log 类.
该类提供了若干静态方法

Log.v(String tag, String msg); 对应 Verbose(详细)

Log.d(String tag, String msg); 对应 Debug(调试)

Log.i(String tag, String msg); 对应 Info(信息)

Log.w(String tag, String msg); 对应 Warning(警告)

Log.e(String tag, String msg);对应 Error(错误)

相关文章

网友评论

      本文标题:Android 之 Log 输出

      本文链接:https://www.haomeiwen.com/subject/gikmcxtx.html