Log Service provides SDKs for multiple programming languages, such as .NET, Java, Python, PHP, and C. You can select an SDK based on your business requirements.

Usage notes

The implementation of Log Service SDKs varies based on the programming languages. Each SDK is an encapsulation of Log Service API in different programming languages. The SDKs provide the following common features:

  • Encapsulation of Log Service API. Log Service SDKs implement the underlying API request creation and response parsing. The API operations in different programming languages are similar. This simplifies the switchover between different programming languages. For more information, see Interface regulations.
  • Automatic digital signatures. You do not need to focus on the digital signature logic of Log Service API. This simplifies the use of Log Service API. For more information, see Request signatures.
  • Protocol Buffer-formatted encapsulation. The logs that are collected by Log Service are encapsulated in the Protocol Buffer format. You do not need to focus on the format details. For more information, see Protocol Buffer format.
  • Log compression by using the method that is defined in Log Service API. Log Service SDKs for some programming languages allow you to specify whether logs can be written to Log Service in compression mode. By default, the compression mode is used.
  • Unified exception handling mechanism. You can use Log Service SDKs to handle exceptions based on the related programming language. For more information, see Exception handling.
  • Support for only synchronous requests.

SDKs