This document describes how to validate the Remote Log Access feature of the Alibaba Cloud App Monitor iOS SDK.
1. Pull logs
Step 1. Identify the device
Start the app and find the following log in the Xcode console. The string that follows `DeviceID:` is the device ID.
[AlicloudApmCore] Started Successfully | DeviceID:Z+EBZ0ckxPIDAG1ZDpm1Awzk
In the navigation pane on the left of the console, choose Remote Log Access > Task List to open the Task List tab.
On the Task List tab, click the Create Task button to open the Create Task page.
In the navigation pane on the left, choose Device Log. Then, enter the Device ID/Name and click the Refresh button to verify that the mobile device is detected.
If the device is not detected, possible reasons include the following:
Network connection issues or delays: Ensure that your mobile device is connected to the internet. Wait a few moments and then click Refresh.
The SDK failed to send data. Contact Technical Support for assistance.
Step 2. Pull the log
Switch the app between the foreground and background to trigger log output.
Create a log pull task for the specified mobile device. For more information, see Create a task.
View the task to confirm that it is complete. For more information, see View and manage tasks.
In the navigation pane on the left, choose Device Log to confirm that the logs from the specified mobile device were successfully pulled.
For more information about Device Log operations, see View logs.
If the log pull fails, contact Technical Support for assistance.
2. Proactively report logs
Call the SDK API to report the logs from the current day.
#import "AlicloudApmRemoteLog/AlicloudApmRemoteLog.h"
[EAPMRemoteLog uploadTLog:@"Your bizComment"];
In the console, choose Remote Log Access > Active Reporting to view the details of the reported logs.