All Products
Search
Document Center

Simple Log Service:iOS SDK overview

Last Updated:Sep 11, 2026

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

ViewController.swift

Sample code for log collection based on the Swift language.

ProducerExampleNoCacheController.m

Sample code for log collection based on the Objective-C language, without cache configurations.

ProducerExampleController.m

Sample code for log collection based on the Objective-C language, with cache configurations.

ProducerExampleController.m

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 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.