How Do I Collect SDK Logs?
Collecting Android SDK Logs
If the log storage path has not been changed during SDK initialization, the default log path is /sdcard/Android/data/Application_package_name/files/log. You can use the file management tool on your device to pack the entire log directory. You can also use adb to obtain log files. The procedure is as follows:
- Connect your mobile phone to a computer using a USB cable, enable the developer mode on the mobile phone, open the Command Prompt window, type adb devices, and press Enter to check whether your mobile phone is connected to the computer.
- Enter the adb pull Log path Target path, and press Enter.
Figure 1 Obtaining log using the CLI
- Find the SDK logs in the D:\log\log directory.
Figure 2 Log directory
Obtaining iOS SDK Logs
- Open the Xcode, and choose Window > Devices and Simulators from the menu bar.
Figure 3 Downloading the file
- Right-click the file downloaded in 1 and choose Show Package Contents from the shortcut menu.
Figure 4 Choosing Show Package Contents
- View logs in the displayed package contents.
Figure 5 Log path
Obtaining Windows SDK Logs
If you have customized a log storage path, obtain logs from that path. If the default log path is used, perform the following steps to obtain logs:
- Open File Explorer, enter %appdata% in the address bar, and press Enter.
Figure 6 File Manager
- Find the HwmSdk directory. The SDK logs are stored in HwmSdk\log.
Figure 7 HwmSdk directory
Obtaining macOS SDK Logs
- Go to Finder and choose Go > Go to Folder.
- Enter the path.
If App Sandbox is enabled, the log path is:
~/Library/Containers/com.huawei.cloud.welinkdemo/Data/Library/Application Support/HWMUISDKNativeDemo
If App Sandbox is disabled, the log path is:
~/Library/Application Support/HWMUISDKNativeDemo
- Open the Logs folder and find the logs of the corresponding module.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot