Overview of Simple Log Service SDK for Android

更新时间:
复制 MD 格式

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 that can be dynamically updated

ProducerWithNoPersistent.java

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

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.

Crash data collection

sls-android-crashreporter

The library used to automatically collect crash data. For more information, see Mobile O&M Monitoring.

Stuttering data collection

sls-android-blockdetection

The library used to automatically collect stuttering data. For more information, see Mobile O&M Monitoring.

Network quality analysis

sls-android-network-diagnosis

The library used to automatically collect the data of network quality analysis. For more information, see Network Quality Analyzer.

Trace data collection

sls-android-trace

The library used to collect Android trace data. For more information, see Collect user experience monitoring data from Android devices.

Network extension library

sls-android-okhttp

The library used to automatically collect Android trace data from the OkHttp network library. For more information, see Collect user experience monitoring data from Android devices.

Unity3D data collection

Unity4SLS.unitypackage

The plug-in used to collect Unity3D data. Unity3D is a game engine. For more information, see Use the Unity plug-in to collect data.