iOS SDK overview
The Simple Log Service (SLS) SDK for iOS encapsulates the API operations for log collection, allowing you to easily collect iOS logs.
Version guide
For more information, see Aliyun Log iOS Release.
Sample code
The SLS SDK for iOS provides various code samples. The following table describes the samples.
GitHub source code | Description |
Sample code for log collection based on the Swift language. | |
Sample code for log collection based on the Objective-C language, without cache configurations. | |
Sample code for log collection based on the Objective-C language, with cache configurations. | |
Sample code for log collection based on the Objective-C language, with callback configurations. |
SDK description
The following table describes the log collection features provided by the iOS SDK.
Feature | SDK | Description |
Producer | Producer | A basic collection SDK that encapsulates API operations related to log collection. |
Core framework library | Core | The core library of the SDK framework. This library is required to collect crash data, network quality analysis data, and trace data. |
OT protocol library | OT | The core implementation library of OpenTelemetry (OTel). |
OT protocol extension library | OTSwift | The Swift extension library for OTel. |
Collect crash data | CrashReporter | A library for automatic collection of crash data. For more information, see Mobile Service Monitoring. |
Collect stuttering data | CrashReporter | A library for automatic collection of stuttering data. For more information, see Mobile Service Monitoring. |
Network quality analysis | NetworkDiagnosis | A library for automatic collection of network quality analysis data. For more information, see Network quality analyzer. |
Collect trace data | Trace | A library for collecting iOS trace data. For more information, see Ingest data from iOS Real User Monitoring. |
Network extension library | URLSessionInstrumentation | A library for automatic data collection from the iOS trace network library. For more information, see Ingest data from iOS Real User Monitoring. |
Collect data from the Unity 3D game engine plugin | Unity4SLS.unitypackage | A plugin for data collection from the Unity 3D game engine. For more information, see Ingest data using a Unity plugin. |