Where are Android logcat files stored?

2020-02-02 08:04发布

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

3条回答
forever°为你锁心
2楼-- · 2020-02-02 08:40

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楼-- · 2020-02-02 08:40

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.)

查看更多
劳资没心,怎么记你
4楼-- · 2020-02-02 08:41

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.

查看更多
登录 后发表回答