tencent cloud


Uploading Log via SDK

Last updated: 2022-10-13 14:36:07


    To help you use CLS more efficiently, we have created SDKs in multiple programming languages for log upload. You can choose an appropriate version based on your business needs.


    1. The SDK encapsulates the data access APIs of CLS uniformly to make log upload much easier.
    2. The SDK implements the encapsulation of CLS logs in the Protobuf format, so you don't need to care about the specific details of this format when writing logs.
    3. The SDK implements the compression methods defined in CLS APIs, so you don't need to care about the details of compression implementation. SDKs for certain programming languages support writing compressed logs by default.
    4. The SDK provides unified features such as async sending, resource control, automatic retry, graceful shutdown, and log perception to make log reporting more comprehensive.

    SDK List

    The following table lists the source code of CLS SDKs for different programming languages at GitHub:

    SDK Language GitHub Source Code
    Java tencentcloud-cls-sdk-java
    C++ tencentcloud-cls-sdk-c++
    Go tencentcloud-cls-sdk-go
    JavaScript tencentcloud-cls-sdk-js
    Android tencentcloud-cls-sdk-android
    iOS tencentcloud-cls-sdk-ios
    Contact Us

    Contact our sales team or business advisors to help your business.

    Technical Support

    Open a ticket if you're looking for further assistance. Our Ticket is 7x24 avaliable.

    7x24 Phone Support