All Products
Search
Document Center

Simple Log Service:Overview of Simple Log Service SDK for Android

Last Updated:Nov 09, 2023

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

Release notes

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

Sample code

Simple Log Service SDK for Android provides a variety of sample code for your reference and use. The following table provides links to the sample code.

GitHub source code

Description

ProducerExample.java

Examples on how to collect logs based on recommended collection configurations

ProducerWithDynamicConfig.java

Examples on how to collect logs based on collection configurations in which no caches are included

ProducerWithNoPersistent.java

Examples on how to collect logs based on collection configurations that can be dynamically updated

Description

The following table describes the modules that are provided by Simple Log Service SDK for Android to implement log collection.

Module

SDK component

Description

Producer

aliyun-log-android-sdk

A basic collection SDK that encapsulates the API operations related to log collection.

Framework-specific core library

sls-android-core

The core library of the SDK framework that must be connected when crash data, data of network quality analysis, and trace data are collected.

OpenTelemetry protocol library

sls-android-ot

The core implementation library of OpenTelemetry.

OpenTelemetry protocol extension library

sls-android-ot-ktx

The Kotlin extension library of OpenTelemetry that supports features such as coroutine.

Trace data collection

sls-android-trace

The library used to collect Android trace data.

Network extension library

sls-android-okhttp

The library used to automatically collect Android trace data from the OkHttp network library.