File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Doppler.HelloMicroservice/Logging Expand file tree Collapse file tree 1 file changed +3
-2
lines changed 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 ;
@@ -15,7 +16,7 @@ public static LoggerConfiguration SetupSerilog(
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 ) ;
You can’t perform that action at this time.
0 commit comments