How to save LogCat contents to file?

前端 未结 10 1257
没有蜡笔的小新
没有蜡笔的小新 2020-12-05 06:57

I\'ve added debug strings (using Log.d()) and want to see them in context from the contents of logCat. The \"save\" icon for LogCat has a \"Save selected items\" hint, but t

10条回答
  •  攒了一身酷
    2020-12-05 07:27

    To save the Log cat content to the file, you need to redirect to the android sdk's platform tools folder and hit the below command

    adb logcat > logcat.txt
    

    In Android Studio, version 3.6RC1, file will be created of the name "logcat.txt" in respective project folder. you can change the name according to your interest. enjoy

提交回复
热议问题