Overview

Last Updated: May 24, 2017

The Log Service provides software development kits (SDKs) in multiple languages (Java, .NET, Python, PHP, and C). You can select one according to your need to improve the efficiency of the service.

Based on Log Service APIs, the Log Service SDKs provide the same capabilities as Log Service APIs. For details about the Log Service APIs, refer to API reference.

Similar to the Log Service APIs, you need an active Alibaba Cloud access key (consisting of an access key ID and access key secret) to use SDKs. For details, refer to Access key.

To use the Log Service SDKs, you need to know the Log Service endpoints in various Alibaba Cloud regions. For how to specify the root endpoint in an SDK, refer to SDK configuration.

Though the implementation details of the Log Service SDKs vary with different languages, the SDKs can be considered as Log Service APIs encapsulated in different languages and implement the same basic functions, including:

  • Unified encapsulation of the Log Service APIs, removing your need to construct specific API requests and parse responses. The interfaces in various languages are similar, facilitating your switch between different languages.
  • Digital signature logic for the Log Service APIs, greatly reducing the complexity of using APIs as you can ignore details of the API signature logic.
  • Encapsulation of logs collected to the Log Service in the ProtoBuffer format, allowing you to write logs without concern over the ProtoBuffer format.
  • Implementation of the compression method defined in the Log Service APIs, removing the need to focus on compression details. The SDKs in some languages allow you to determine whether to write logs in compression mode. (By default, the compression mode applies.)
  • Unified error handling mechanism, allowing you to handle request errors by using languages you are familiar with.
  • Currently, the SDKs in all languages only support synchronous requests.

The following table lists the download URLs, usage instructions, and complete programming references of the SDKs in different languages.

SDK language Relevant document Source code
Java Quick start and Interface reference GitHub
.NET Quick start and Interface reference GitHub
PHP Quick start and Interface reference GitHub
Node.js GitHub
Java Quick start and Interface reference GitHub
C For details, refer to README GitHub
GO For details, refer to README GitHub
iOS Usage instructions GitHub
Android Usage instructions GitHub
Thank you! We've received your feedback.