Android: Efficient way to read logcat output

喜夏-厌秋 提交于 2019-12-01 10:31:42

android-logger may be of interest to you. Its an open source app that allows you to read logcat from an app on your phone. I'm sure you will find the code you need in this app.

Options:

  1. Eclipse. There is a "logCat" view you can add Window->Show View...->Other->Android->LogCat.
  2. ADB. Use the android debugger console. Run "adb logcat" (this is the same as #1 but without eclipse).

To be efficient:

  1. Don't log too much in the app!
  2. Use filters. In eclipse's logCat you can filter by text, tag, etc...
  3. Battery doesn't matter. The log is output over USB (which should be allowing you to charge anyway!)
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!