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

LoggerProviderDebugView doesn't seem to report the correct log level #103208

Closed
joegoldman2 opened this issue Jun 9, 2024 · 1 comment · Fixed by #103209
Closed

LoggerProviderDebugView doesn't seem to report the correct log level #103208

joegoldman2 opened this issue Jun 9, 2024 · 1 comment · Fixed by #103209

Comments

@joegoldman2
Copy link
Contributor

Description

LoggerProviderDebugView doesn't seem to report the correct log level when the level is configured to None. I tested with all other levels and the correct value is reported each time.

Reproduction Steps

using Microsoft.Extensions.Logging.Console;

var services = new ServiceCollection();
services.AddLogging(builder =>
{
    builder.AddConsole();
    builder.AddFilter<ConsoleLoggerProvider>(null, LogLevel.None);
});
using var provider = services.BuildServiceProvider();
var logger = provider.GetRequiredService<ILogger<Program>>();

Expected behavior

The log level for the Console provider should be None.

Actual behavior

Screenshot

Regression?

No

Known Workarounds

No response

Configuration

9.0.100-preview.4.24267.66

Other information

No response

@dotnet-policy-service dotnet-policy-service bot added the untriaged New issue has not been triaged by the area owner label Jun 9, 2024
Copy link
Contributor

Tagging subscribers to this area: @dotnet/area-extensions-logging
See info in area-owners.md if you want to be subscribed.

@tarekgh tarekgh added this to the Future milestone Jun 10, 2024
@tarekgh tarekgh removed the untriaged New issue has not been triaged by the area owner label Jun 10, 2024
@tarekgh tarekgh modified the milestones: Future, 9.0.0 Jun 11, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Jul 12, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants