Describe the bug
The Program.cs starts to log in the console before the Serilog code is taking the lead.
There is not FormatProvider defined => generating a warning.
Log.Logger = new LoggerConfiguration()
.WriteTo.Console()
.CreateBootstrapLogger();
Expected behavior
Log.Logger = new LoggerConfiguration()
.WriteTo.Console(formatProvider: CultureInfo.InvariantCulture)
.CreateBootstrapLogger();
Desktop (please complete the following information):
Describe the bug The Program.cs starts to log in the console before the Serilog code is taking the lead. There is not FormatProvider defined => generating a warning.
Log.Logger = new LoggerConfiguration() .WriteTo.Console() .CreateBootstrapLogger();
Expected behavior
Log.Logger = new LoggerConfiguration() .WriteTo.Console(formatProvider: CultureInfo.InvariantCulture) .CreateBootstrapLogger();
Desktop (please complete the following information):