File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
Doppler.HelloMicroservice Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -380,4 +380,3 @@ dotnet_analyzer_diagnostic.category-CodeQuality.severity = error
380380dotnet_diagnostic.CA1707.severity = none
381381# Disabled because of a bug in the analyzer (see https://github.com/xunit/xunit.analyzers/pull/150)
382382dotnet_diagnostic.xUnit1033.severity = none
383-
Original file line number Diff line number Diff line change 11using System ;
2+ using System . Globalization ;
23using Microsoft . Extensions . Configuration ;
34using Microsoft . Extensions . Hosting ;
45using Serilog ;
@@ -7,15 +8,15 @@ namespace Doppler.HelloMicroservice.Logging;
78
89public static class SerilogSetup
910{
10- public static LoggerConfiguration SetupSeriLog (
11+ public static LoggerConfiguration SetupSerilog (
1112 this LoggerConfiguration loggerConfiguration ,
1213 IConfiguration configuration ,
1314 IHostEnvironment hostEnvironment )
1415 {
1516 configuration . ConfigureLoggly ( hostEnvironment ) ;
1617
1718 loggerConfiguration
18- . WriteTo . Console ( )
19+ . WriteTo . Console ( formatProvider : CultureInfo . InvariantCulture )
1920 . Enrich . WithProperty ( "Application" , hostEnvironment . ApplicationName )
2021 . Enrich . WithProperty ( "Environment" , hostEnvironment . EnvironmentName )
2122 . Enrich . WithProperty ( "Platform" , Environment . OSVersion . Platform )
@@ -25,7 +26,7 @@ public static LoggerConfiguration SetupSeriLog(
2526 if ( ! hostEnvironment . IsDevelopment ( ) )
2627 {
2728 loggerConfiguration
28- . WriteTo . Loggly ( ) ;
29+ . WriteTo . Loggly ( formatProvider : CultureInfo . InvariantCulture ) ;
2930 }
3031
3132 loggerConfiguration . ReadFrom . Configuration ( configuration ) ;
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ public static IHostBuilder CreateHostBuilder(string[] args) =>
2121 Host . CreateDefaultBuilder ( args )
2222 . UseSerilog ( ( hostContext , loggerConfiguration ) =>
2323 {
24- loggerConfiguration . SetupSeriLog ( hostContext . Configuration , hostContext . HostingEnvironment ) ;
24+ loggerConfiguration . SetupSerilog ( hostContext . Configuration , hostContext . HostingEnvironment ) ;
2525 } )
2626 . ConfigureAppConfiguration ( ( hostContext , configurationBuilder ) =>
2727 {
You can’t perform that action at this time.
0 commit comments