Log Service provides software development kits (SDKs) for multiple programming languages, such as Java, .NET, Python, PHP, and C. You can select an SDK based on your business requirements.
The implementation of Log Service SDKs varies depending on programming languages. However, Log Service SDKs are APIs that are encapsulated in different programming languages. The SDKs provide the following common features:
- Log Service SDKs encapsulate APIs. They implement the underlying API request creation and response parsing. APIs that are developed in different languages are called by using similar methods. This allows you to use different programming languages. For more information, see Procedure.
- Log Service SDKs implement digital signature of API operations. This simplifies API calls. For more information, see Request signature.
- Log Service SDKs convert the format of logs into the Protocol Buffers (Protobuf) format. You do not need to convert the log format when you write logs to Log Service. For more information, see Protobuf format.
- Log Service SDKs use the method that is defined in Log Service APIs to compress logs. Several SDKs allow you to specify whether to write logs in the compression mode. The compression mode is used by default.
- Log Service SDKs provide a unified exception handling mechanism. You can use a method to handle request exceptions based on the SDK language. For more information, see Exception handling mechanism.
- Log Service SDKs support only synchronous requests.
Supported SDKs
SDK language | Source code |
---|---|
Java | Log Service Java SDK and Log Service SDK for Java 0.6.0 API |
.NET Core | aliyun-log-dotnetcore-sdk |
.NET | Log Service csharp SDK |
PHP | Log Service PHP SDK |
Python | Log Service Python SDK and User Guide |
Node.js | Log Service Node.js SDK |
C | Log Service C SDK |
GO | Log Service Go SDK |
iOS | Log Service iOS SDK |
Android | Log Service Android SDK |
C++ | Log Service C++ SDK |
JavaScript SDK | JavaScript SDK |