in a web api using top level statements, how do I set-up SeriLog in Program.cs and in my controller use DI to pass in the SeriLog info and write events to my log table
Loading
in a web api using top level statements, how do I set-up SeriLog in Program.cs and in my controller use DI to pass in the SeriLog info and write events to my log table
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Sachin SinghPosted Jan 9, 2024, 8:29 PM
You can use below code