How to get full local logs on Android client

How to get full local logs when issues occur on Android client

Solution

Reproduce the issue and follow these steps to collect a complete log.

Log collection steps:

  1. Connect your phone to a computer and keep the screen on.

  2. Uninstall and reinstall the app.

  3. In the command window, enter adb logcat -v time > xxxx.log (run this before starting the app, otherwise the logs may be incomplete).

  4. Start the app and perform relevant operations until the issue occurs.

  5. For push-related logs, wait 2-3 minutes after initialization completes before ending log collection.

  6. Press ctrl + c to end log collection.

  7. xxxx.log will be saved in the current directory.

Note: Avoid field filtering to keep the logs as complete as possible.

Schematic diagram

More support

If you have any questions, feel free to submit a ticket.