### Configure TencentCloud Sink via JSON Configuration Source: https://github.com/easyabp/serilog.sinks.tencentcloud/blob/master/README.md This JSON configuration demonstrates how to set up the Tencent Cloud sink using Serilog.Settings.Configuration. Provide your specific `requestBaseUri`, `topicId`, `secretId`, and `secretKey`. ```json { "Serilog": { "MinimumLevel": "Verbose", "WriteTo": [ { "Name": "TencentCloud", "Args": { "requestBaseUri": "ap-guangzhou.cls.myqcloud.com", "topicId": "", "secretId": "", "secretKey": "" } } ] } } ``` -------------------------------- ### Configure TencentCloud Sink Programmatically Source: https://github.com/easyabp/serilog.sinks.tencentcloud/blob/master/README.md Use this snippet to configure the Tencent Cloud sink directly in your C# code. Ensure you replace placeholder values with your actual domain, topic ID, Secret ID, and Secret Key. ```csharp Log.Logger = new LoggerConfiguration() .WriteTo.TencentCloud("请求域名(ap-guangzhou.cls.myqcloud.com)", "topic_id(b8c1fafe-677a-4cc2-9c26-d962d5caa077)", "TencentCloud API Sercet Id", "TencentCloud API Sercet Key", restrictedToMinimumLevel: LogEventLevel.Warning) .CreateLogger() ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.