简体   繁体   中英

How to configure Serilog to write logs inn SQL Server for .NET 5 Web API

I have implemented an exact flow in my code as mentioned in below link but still I cant see any logs written in my Log table. https://www.c-sharpcorner.com/article/how-to-implementation-serilog-in-asp-net-core-5-0-application-with-database/

Can someone please tell me am I missing something here.

Thanks in advance.

It is resolved now. I was missing schema name in my code where we configure the Logger in Main method. When I have added that, its working now.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM