【发布时间】:2020-03-31 16:03:45
【问题描述】:
我想使用 Serilogger 将我的 .net 核心服务器的日志写入 Rest-api。我已经检查了几种方法,并通过提供我的 rest api 的 url 来尝试 Seq sink。但它不能有效地工作。 是否有任何休息api接收器?感谢您的帮助
"Serilog": {
"Using": [ "Serilog", "Serilog.Sinks.Console", "Serilog.Sinks.Seq" ],
"MinimumLevel": {
"Default": "Verbose",
"Override": {
"System": "Information",
"Microsoft": "Information",
"Microsoft.EntityFrameworkCore": "Information"
}
},
"WriteTo": [
{
"Name": "Seq",
"Args": {
"serverUrl": "http://localhost:6010",
"apiKey": "none",
"restrictedToMinimumLevel": "Verbose"
}
},
{
"Name": "Async",
"Args": {
"configure": [
{
"Name": "Console",
"Args": {
"restrictedToMinimumLevel": "Information"
}
}
]
}
}
],
【问题讨论】:
标签: web-services asp.net-core serilog seq