Simple Log Service provides SDKs for different programming languages, such as .NET, .NET Core, Java, Python, PHP, Node.js, C, Go, iOS, Android, and C++. You can use Simple Log Service SDKs to collect, query, and analyze logs.
Usage notes
Simple Log Service SDKs for different programming languages vary in terms of implementation. However, Simple Log Service SDKs for different programming languages encapsulate the same API operations and provide similar features. Simple Log Service SDKs provide the following features:
Encapsulation of Simple Log Service API operations. Simple 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 API regulations.
Automatic digital signature of API requests. You do not need to specify the digital signature logic of the Simple Log Service API. This simplifies the use of the Simple Log Service API. For more information, see Request signatures.
Protocol Buffer-formatted encapsulation of logs. The logs that are collected by Simple Log Service are encapsulated in the Protocol Buffer format. You do not need to specify a format. For more information, see Protocol Buffer format.
Log compression by using the method that is defined in the Simple Log Service API. Simple Log Service SDKs for several programming languages allow you to specify whether logs can be written to Simple Log Service in compression mode. By default, the compression mode is used.
Unified exception handling mechanism. You can use a Simple Log Service SDK to handle exceptions based on the programming language. For more information, see Exception handling.
Support only for synchronous requests.
Simple Log Service SDKs for different programming languages
The following table provides links to the references and GitHub source code of Simple Log Service SDKs for different programming languages.
Simple Log Service imposes limits on basic resources, such as the number of projects, the number of Logstores, the number of shards, and the size of LogItem. We recommend that you read the topic about the limits before you use Simple Log Service SDKs. For more information, see Limits on basic resources.
After you collect logs to Simple Log Service by using a Simple Log Service SDK, you must configure indexes for the logs. Then, you can perform various operations such as query, analysis, and transformation on the logs. For more information, see Create indexes and Query and analyze logs.
SDK programming language | References | Source code on GitHub |
Java | ||
.NET Core | ||
.NET | ||
PHP | ||
Python | ||
Node.js | ||
C | ||
GO | ||
iOS | ||
Android | ||
C++ |