Open yangxinyun opened 5 years ago
Your WriteTo:Name
property is invalid
It should be
"Serilog": {
"Using": [ "Serilog.Sinks.EventLog" ],
"MinimumLevel": {
"Default": "Debug"
},
"WriteTo": [
{
"Name": "EventLog",
"Args": {
"source": "Source",
"logName": "Log Name"
}
}
]
}
Used following content in my appsetting.json , and no log can be found from the eventviwer. In the meanwhile, tried c# api to configure it, and it worked.