Save Data of LogCat in android

前端 未结 5 1528
盖世英雄少女心
盖世英雄少女心 2021-02-04 19:09

I want to save all the contents of log cat into specific file in Android. I used Eclipse IDE to develop the android application.

How i can achieve this ?

Thanks.

5条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-02-04 19:36

    I want to save all the contents of log cat into specific file in Android.
    

    LogCat files 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.

    See this : https://sites.google.com/site/androidhowto/how-to-1/save-logcat-to-a-text-file

    Other Ways to Extract LogCat:

    1. @Blundell's Way :

      Select the lines of LogCat that you want to save and then simply press Ctrl + C (for copying) and then use Ctrl+V (for paste) in any text file.

    2. @Niek's Way :

      In the LogCat tab, select the lines that you want to save. Then at the right top, click on the Small Triangle Pointing Down, called 'View Menu', and select 'Export Selection as text.." It will ask you where to save your LogCat file.

提交回复
热议问题