0
votes

I have been using Serilog in classic .Net and its been working fine. Now I am using Serilog for .Net Core. Based on the documentation I need to Install

 Install-Package Serilog.Extensions.Logging
 Install-Package Serilog.Sinks.RollingFile

with this setup I was able to log to file.

However I dont see it is required to install main Serilog package

       Install-Package Serilog 

With classic .Net this was mandatory package, Is Serilog package not required for .Net core?

1

1 Answers

1
votes

The Serilog package is a dependency of the other two, so by installing either, the core Serilog package will be installed automatically.