File tree Expand file tree Collapse file tree
ProjectTemplates/ReferenceProject Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -45,21 +45,11 @@ public static IHostBuilder CreateHostBuilder(string[] args) =>
4545
4646 config . AddEnvironmentVariables ( ) ;
4747 } )
48+ // https://github.com/drwatson1/AspNet-Core-REST-Service/wiki#logging
4849 . UseSerilog ( ( context , services , configuration ) => configuration
4950 . ReadFrom . Configuration ( context . Configuration )
5051 . ReadFrom . Services ( services )
5152 )
52- . ConfigureLogging ( ( context , logging ) =>
53- {
54- logging . ClearProviders ( ) ;
55-
56- // https://github.com/drwatson1/AspNet-Core-REST-Service/wiki#logging
57- Log . Logger = new LoggerConfiguration ( )
58- . ReadFrom . Configuration ( context . Configuration )
59- . CreateLogger ( ) ;
60-
61- logging . AddSerilog ( Log . Logger ) ;
62- } )
6353 . ConfigureWebHostDefaults ( webBuilder =>
6454 {
6555 webBuilder . UseStartup < Startup > ( ) ;
You can’t perform that action at this time.
0 commit comments