APP Log Analytics

Source: Internet
Author: User

1. First check whether the device is connected successfully via ADB devices

2. Crawl logs via adb logcat command

The Logcat log file-android log provides the ability to record and view system debug information, which is recorded from various software and buffer zones of some systems, and buffers can be viewed through Logcat and used

The Logcat has a large output and defines 4 log buffers:

Radio: Log of the output communication system

System: Log of the output system component

Events: Log of output events

Main: All Java Tiers (default)

Switch log output Adb logcat-b Radio Select the output of the radio buffer

3.ADB logcat-v Time (-V times in order to get log hours)

4. Log Analysis:

The log can be filtered by the package name.

Run the program in the foreground, view the app package name by command: adb shell Dumpsys | Findstr "Mfocusedactivity"

5. Crash problem occurred, search keyword Force finishing (look up the log: FATAL Exception-force finish)

6.ANR (Application not responding) application is unresponsive, and the system will pop up an unresponsive dialog box when the application is unable to process for a period of time.

Search data from top to bottom with ANR in filter data

ANR needs to commit the log file : Logcat (after use from ANR in +cpu) +trace.txt (last ANR information saved)

7. Multiple ANR: Direct the DATA_APP_ANR under Dropbox to the developer

Collect exception information (including ANR) over a period of time via Dropbox

/data/system/dropbox

Data_app is a third-party app

8.APP exception occurred

L First determine if it is a crash or a non-responsive ANR (based on the dialog box)

L ADB logcat Crawl log file If it is ANR take Dropbox under the Data_app_anr

L REPRODUCE the scene recurrence step to reproduce the environment

APP Log Analytics

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.