File tree Expand file tree Collapse file tree
src/Services/Ordering/Ordering.SignalrHub Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -21,6 +21,12 @@ public static void Main(string[] args)
2121 public static IWebHost BuildWebHost ( string [ ] args ) =>
2222 WebHost . CreateDefaultBuilder ( args )
2323 . UseStartup < Startup > ( )
24+ . ConfigureLogging ( ( hostingContext , builder ) =>
25+ {
26+ builder . AddConfiguration ( hostingContext . Configuration . GetSection ( "Logging" ) ) ;
27+ builder . AddConsole ( ) ;
28+ builder . AddDebug ( ) ;
29+ } )
2430 . UseSerilog ( ( builderContext , config ) =>
2531 {
2632 config
Original file line number Diff line number Diff line change @@ -120,8 +120,6 @@ public IServiceProvider ConfigureServices(IServiceCollection services)
120120 // This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
121121 public void Configure ( IApplicationBuilder app , ILoggerFactory loggerFactory , ILoggingBuilder loggerBuilder )
122122 {
123- loggerFactory . AddConsole ( Configuration . GetSection ( "Logging" ) ) ;
124- loggerBuilder . AddDebug ( ) ;
125123 loggerBuilder . AddAzureWebAppDiagnostics ( ) ;
126124 loggerFactory . AddApplicationInsights ( app . ApplicationServices , LogLevel . Trace ) ;
127125
You can’t perform that action at this time.
0 commit comments