GFlisch / Arc4u.Guidance.Doc

Other
5 stars 1 forks source link

Add FormatProvider to the WriteTo.Console in Program.cs #221

Closed GFlisch closed 7 months ago

GFlisch commented 9 months ago

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):