Hi,
I have implemented logging for my asp.net core 2.1 web API using the following link. In this link example given to write to file system. This works fine. How to log in sqlserver level as well. i need to write in both(File System and sqlserver). I tried to add this in JSON like the below. but it gives error. please help me write in both the places. Any sample will be highly appreciable.
http://anthonygiretti.com/2018/11/19/common-features-in-asp-net-core-2-1-webapi-logging/
"Serilog": {"MinimumLevel": "Information","WriteTo": [ {"Name": "RollingFile","Args": {"pathFormat": "F:\\Log\\\\apilog-{Date}.txt","outputTemplate": "{Timestamp:yyyy-MM-dd HH:mm:ss.fff zzz} [{Level}] {Message}{NewLine}{Exception}" } } ],"WriteTo": [ {"Name": "MSSqlServer","Args": {"connectionString": "<our connection string>","tableName": "Log" } } ],"Properties": {"Application": "Common feature in WebApi demo" } },