Log Service SDK for iOS encapsulates all API operations of Log Service. You can use Log Service SDK for iOS to collect iOS logs in a convenient manner.

Release notes

For more information, see aliyun-log-ios-sdk.

Sample code

Log Service SDK for iOS provides a variety of sample code for your reference and use. The following table provides links to the sample code.
GitHub source code Description
Example1.swift Examples on how to collect logs based on the Swift programming language and the collection configurations in which no caches are included
Example2.swift Examples on how to collect logs based on the Swift programming language and the collection configurations in which caches are included
Example3.swift Examples on how to collect logs based on the Swift programming language and the collection configurations in which callbacks are included
Example1.m Examples on how to collect logs based on the Objective-C programming language and the collection configurations in which no caches are included
Example2.m Examples on how to collect logs based on the Objective-C programming language and the collection configurations in which caches are included
Example3.m Examples on how to collect logs based on the Objective-C programming language and the collection configurations in which callbacks are included