Added the gitignore for the .vscode folder for Visual Studio Code users
Removed the implicit declaration adding a json file based on the ASPNETCORE_ENVIRONMENT value.
By default .NET Core now ports over all the appsettings.{ANY}.json files and will override the values in the main appsettings.json file based on the environment used. I haven't found any docs for this but I've confirmed this behavior myself.
Removed the applogsettings.json that contains the specifications for Serilog
Removed the config builder declaration in the Main entry point of the assembly
This is for a more graceful approach at injecting the Serilog configuration. We are already using the UseSerilog extension which exposes an Action that contains the HostingContext (AspNet hosting context) and the LoggerConfiguration (Serilog's config for the Serilog factory in Line 123).
Added additional configs in launchSettings.json for a more seamless Visual Studio experience. I have one for VSCode but I added it to the .gitignore to reduce noise
Criticisms or changes please if applicable @proudmonkey!
.vscode
folder for Visual Studio Code usersBy default .NET Core now ports over all the appsettings.{ANY}.json files and will override the values in the main appsettings.json file based on the environment used. I haven't found any docs for this but I've confirmed this behavior myself.
appsettings.json
appsettings.Staging.json
Resulting appsettings when calling
IConfiguration
Main
entry point of the assemblyThis is for a more graceful approach at injecting the Serilog configuration. We are already using the UseSerilog extension which exposes an Action that contains the
HostingContext
(AspNet hosting context) and theLoggerConfiguration
(Serilog's config for the Serilog factory in Line 123)..gitignore
to reduce noiseCriticisms or changes please if applicable @proudmonkey!