菜单 学习猿地 - LMONKEY

VIP

开通学习猿地VIP

尊享10项VIP特权 持续新增

知识通关挑战

打卡带练!告别无效练习

接私单赚外块

VIP优先接,累计金额超百万

学习猿地私房课免费学

大厂实战课仅对VIP开放

你的一对一导师

每月可免费咨询大牛30次

领取更多软件工程师实用特权

入驻
54
0

logcat

原创
05/13 14:22
阅读数 71415

logcat

  The Android logging system provides a mechanism for collecting and viewing system debug output. Logs from various applications and portions of the system are collected in a series of circular buffers, which then can be viewed and filtered by the logcat command. You can use logcat from an ADB shell to view the log messages.

   Logcat dumps a log of system messages, which include things such as stack traces when the emulator throws an error and messages that you have written from your application by using the Log class. 

The Log Class

  Log is a logging class that you can utilize in your code to print out messages to the LogCat. Common logging methods include:

  

  Log优先级:

    

logcat的使用

  

  

  If you're running LogCat from your development computer,可以设置默认的filter:

  

  

参考:

1、http://android.xsoftlab.net/tools/help/logcat.html

 

发表评论

0/200
54 点赞
0 评论
收藏