Where are Android logcat files stored?

拈花ヽ惹草 提交于 2019-11-27 00:34:46

问题


I'm looking for the log file(s) that are made by logcat. Where are they typically stored?


回答1:


They are stored as circular memory buffers on the device. If you run "adb logcat > myfile" on your host system, you can retrieve the content into a file.




回答2:


To get post-mortem information from a device it is helpful to see the timestamp as well. To let you know when the event occurred, try: adb logcat -d -v time > logfile.txt




回答3:


If you just want to see the current contents of the log, you can do adb logcat -d > myfile

It will exit after dumping the log.

(suravi's suggestion would be good if you wanted to watch the log while testing.)



来源:https://stackoverflow.com/questions/4424544/where-are-android-logcat-files-stored

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!