首页 > 其他 > 详细

logcat

时间:2014-09-27 21:12:51      阅读:300      评论:0      收藏:0      [点我收藏+]

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:

  bubuko.com,布布扣

  Log优先级:

  bubuko.com,布布扣  

logcat的使用

  bubuko.com,布布扣

  bubuko.com,布布扣

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

  bubuko.com,布布扣

  

参考:

1、http://developer.android.com/tools/debugging/debugging-log.html

2、http://developer.android.com/tools/help/logcat.html

 

logcat

原文:http://www.cnblogs.com/tekkaman/p/3997149.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!