Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minimal host does not read environment specific configuration for logging #32383

Closed
davidfowl opened this issue May 4, 2021 · 1 comment · Fixed by #33081
Closed

Minimal host does not read environment specific configuration for logging #32383

davidfowl opened this issue May 4, 2021 · 1 comment · Fixed by #33081
Assignees
Labels
area-minimal Includes minimal APIs, endpoint filters, parameter binding, request delegate generator etc bug This issue describes a behavior which is not expected - a bug. feature-minimal-hosting
Milestone

Comments

@davidfowl
Copy link
Member

Describe the bug

The new minimal host doesn't seem to read the appsettings.{env}.json.

To Reproduce

Program.cs

var app = WebApplication.Create(args);
Console.WriteLine(((IConfigurationRoot)app.Configuration).GetDebugView());

appsettings.Development.json

{
  "Logging": {
    "LogLevel": {
      "Default": "Information",
      "Microsoft": "Debug",
      "Microsoft.Hosting.Lifetime": "Information"
    }
  }
}

Further technical details

Microsoft.AspNetCore.App 6.0.0-preview.4.21222.16 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]

@davidfowl davidfowl added feature-minimal-hosting bug This issue describes a behavior which is not expected - a bug. labels May 4, 2021
@BrennanConroy BrennanConroy added this to the Next sprint planning milestone May 5, 2021
@ghost
Copy link

ghost commented May 5, 2021

Thanks for contacting us.

We're moving this issue to the Next sprint planning milestone for future evaluation / consideration. We would like to keep this around to collect more feedback, which can help us with prioritizing this work. We will re-evaluate this issue, during our next planning meeting(s).
If we later determine, that the issue has no community involvement, or it's very rare and low-impact issue, we will close it - so that the team can focus on more important and high impact issues.
To learn more about what to expect next and how this issue will be handled you can read more about our triage process here.

@pranavkm pranavkm modified the milestones: 6.0-preview4, 6.0-preview5 May 13, 2021
@DamianEdwards DamianEdwards changed the title Minimal host does not read environment specific configuration Minimal host does not read environment specific configuration for logging May 18, 2021
@ghost ghost locked as resolved and limited conversation to collaborators Jul 8, 2021
@amcasey amcasey added area-minimal Includes minimal APIs, endpoint filters, parameter binding, request delegate generator etc and removed area-runtime labels Jun 2, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-minimal Includes minimal APIs, endpoint filters, parameter binding, request delegate generator etc bug This issue describes a behavior which is not expected - a bug. feature-minimal-hosting
Projects
None yet
6 participants