All Products
Search
Document Center

View local logs

Last Updated: Jul 15, 2021

This guide walks you through the steps to fast find the local logs you want to view.

Log storage path

The log storage path is determined by the release_type field in assets/channel.config.

  • If the value of this field is dev, test, or testpre, logs are stored in offline mode. If the value is release, logs are stored in online mode.
  • If no assets/channel.config file is available or the release_type field is not specified:
    • The offline mode applies when the APK package is a debug package.
    • The online mode applies when the APK package is a release package.

Storage path:

  • In online mode, log files are stored in /data/data/[PackageName]/files/mdap. After a log file is uploaded, the local one is deleted.
  • In offline mode, log files are stored in /sdcard/Android/data/[PackageName]/files/mdap. After a log file is uploaded, the local one is moved to /sdcard/Android/data/[PackageName]/files/mdap/upload for backup. The timestamp is added as the file name prefix of the backup file.

Log file name

Log files are named in the following format: (Timestamp_)process name-business code. The business code (bizType) varies with the log type as follows:

  • Active device/user log: mPaaSAliveAndroid.
  • App startup time log: mPaaSLaunchAndroid.
  • Crash log: mPaaSCrashAndroid.
  • Lag log: mPaaSLAGAndroid
  • Stuck log: mPaaSANRAndroid
  • Custom event log: bizType passed in when tracking is created. If no bizType is passed in, the business code is UserBehaviorAndroid by default.
  • Automation log: mPaaSAutomationAndroid.

Log content format

What to do next

Upload logs