Serilog.Sinks.TencentCloud:仿照Serilog.Sinks.Http写的Serilog扩展将日志推送到腾讯云cls

时间:2024-06-14 17:55:21
【文件属性】:

文件名称:Serilog.Sinks.TencentCloud:仿照Serilog.Sinks.Http写的Serilog扩展将日志推送到腾讯云cls

文件大小:22KB

文件格式:ZIP

更新时间:2024-06-14 17:55:21

C#

Serilog.Sinks.TencentCloud 如何使用它 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() 与Serilog.Settings.Configuration结合使用,可以通过以下方式配置相同的接收器: {


【文件预览】:
Serilog.Sinks.TencentCloud-master
----.github()
--------workflows()
----common.props(1KB)
----src()
--------Serilog.Sinks.TencentCloud()
----.gitignore(4KB)
----README.md(782B)
----.gitattributes(2KB)
----Serilog.Sinks.TencentCloud.sln(1KB)

网友评论