Log Service provides software development kits (SDKs) for various 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 language. However, Log Service SDKs are APIs that are encapsulated in different programming languages. The SDKs provide the following common features:

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

Supported SDKs