Serilog.Sinks.LogDNA:将日志事件发送到LogDNA的Serilog Sink

时间:2024-05-05 17:25:27
【文件属性】:

文件名称:Serilog.Sinks.LogDNA:将日志事件发送到LogDNA的Serilog Sink

文件大小:5KB

文件格式:ZIP

更新时间:2024-05-05 17:25:27

C#

Serilog.Sinks.LogDNA 将日志事件发送到LogDNA Serilog Sink 包 | 平台-.NET 4.5,netstandard2.0 例子: var log = new LoggerConfiguration () . WriteTo . LogDNA ( apiKey : " " , appName : " myapp " ) . CreateLogger (); var position = new { Latitude = 25 , Longitude = 134 }; var elapsedMs = 34 ; log . Information ( " Processed {@Position} in {Elapsed:000} ms. " , position , elapsedMs ); 打印到LogDNA


【文件预览】:
Serilog.Sinks.LogDNA-master
----LogdnaTextFormatter.cs(3KB)
----Serilog.Sinks.LogDNA.csproj(775B)
----LogdnaExtensions.cs(4KB)
----LogdnaHttpClient.cs(769B)
----.gitignore(448B)
----LogdnaBatchFormatter.cs(1KB)
----README.md(781B)

网友评论