A simple way to view Android logs

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.