All Products
Search
Document Center

Simple Log Service:Overview of Simple Log Service SDK for .NET

Last Updated:Oct 26, 2023

Simple Log Service SDK for .NET encapsulates all API operations of Simple Log Service. You can use Simple Log Service SDK for .NET to call API operations of Simple Log Service in a convenient manner.

Release notes

For more information, see aliyun-log-csharp-sdk.

Sample code

Simple Log Service SDK for .NET provides a variety of sample code for your reference and use. The following table provides links to the sample code.

GitHub source code

Description

Program.cs

Examples on how to write logs, query logs and log distribution, and perform batch queries

LoghubSample.cs

Examples on how to query Logstores, write logs, and query logs

References

  • If the response that is returned by Log Service contains error information after you call an API operation, the call fails. You can handle errors based on the error codes that are returned when API calls fail. For more information, see Error codes.
  • Alibaba Cloud OpenAPI Explorer provides debugging capabilities, SDKs, examples, and related documents. You can use OpenAPI Explorer to debug Log Service API operations without the need to manually encapsulate or sign requests. For more information, visit OpenAPI Portal.
  • Log Service provides the command-line interface (CLI) to meet the requirements for automated configurations in Log Service. For more information, see Log Service CLI.