DEV Community

Discussion on: What every ASP.NET Core Web API project needs - Part 1 - Serilog

 
jasonsbarr profile image
Jason Barr

Now how do I actually access the logger and use it? Do I need to create an instance somewhere or set it up for dependency injection?

Thread Thread
 
moesmp profile image
Mohsen Esmailpour

No, just inject I ILogger into classes you want to log data.

Thread Thread
 
jasonsbarr profile image
Jason Barr

Got it working! Thanks for taking the time to help me out.