One of my previous articles has several ways to introduce Android to view logs using unity to develop several debugging methods for Android
The simple way to do this today is to write your Android logs to a file for easy viewing.
If you are debugging with an Android emulator, you need to go to the installation directory of the Android emulator, start the ADB, and if you connect the real machine, you don't need to.
View installation Device connections
REM installation path for Android simulator CD C:cdFiles (x86) \droid4xrem if non-Android simulator, can comment above line rem adb kill-server ADB devices PAUSE
Write log files to file for easy viewing
REM installation path for Android simulator CD C:cdFiles (x86) \droid4xREM If non-Android simulator, you can annotate the above line adb logcat-s Unity > E:\Log. txt PAUSE
Save the above script as two bat
- View Android connection device. bat
- Write the Android debug log to the file. bat
The next time you need to view the log, just double-click on the Android debug log to write to the file. Bat, the log is written to the text for easy viewing.
BAT script: Https://github.com/zhaoqingqing/blog_samplecode/tree/master/workflow-tools/debug (%e8%b0%83%e8%af%95%e5% B7%A5%E5%85%B7)
A simple way to view Android logs