How to use Serilog in .NET Core Console app
I’m not sure about builder.SetMinimumLevel (it doesn’t use the Serilog enum). We set the logger level when creating the LoggerConfiguration object. Log.Logger = new LoggerConfiguration() .MinimumLevel.Debug() .WriteTo.Console(restrictedToMinimumLevel: LogEventLevel.Debug) // restricted… is Optional (…) .CreateLogger(); BTW. It’s worth pointing out the following section from Configuration Basics Logger vs. sink minimums – it is important to realize … Read more