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

Design: Debug log messages not reported on the console #8879

Closed
bricelam opened this issue Jun 16, 2017 · 4 comments
Closed

Design: Debug log messages not reported on the console #8879

bricelam opened this issue Jun 16, 2017 · 4 comments
Assignees
Labels
closed-fixed The issue has been fixed and is/will be included in the release indicated by the issue milestone. regression type-bug
Milestone

Comments

@bricelam
Copy link
Contributor

We've either regressed this in 2.0.0-preview2 or #7785 never got merged into dev.

@bricelam
Copy link
Contributor Author

This has regressed in 2.0.0-preview2-final.

@bricelam
Copy link
Contributor Author

bricelam commented Jun 20, 2017

This is being caused by a change in Logging. No Debug messages are being sent to our ILogger. I suspect this is caused by the new filters feature which sets the default minimum level to Information. I cannot find a way to get this working.

I've tried...

serviceCollection.AddLogging(x => x.SetMinimumLevel(LogLevel.Debug));

...and...

serviceProvider.GetService<IOptions<LoggerFilterOptions>>().Value.MinLevel = LogLevel.Debug;

...but neither one seems to have an affect.

@bricelam
Copy link
Contributor Author

I'll focus my efforts on #8686 instead.

@bricelam bricelam changed the title RevEng: Log messages not reported on the console Design: Debug log messages not reported on the console Jun 22, 2017
@bricelam
Copy link
Contributor Author

Punting. These messages aren't essential for design-time. All the verbose messages outside of Logging will still be reported. The workaround is to configure your application's filtering to allow Debug messages if you need to see these messages at design-time.

@bricelam bricelam modified the milestones: Backlog, 2.0.0 Jun 26, 2017
@bricelam bricelam added closed-fixed The issue has been fixed and is/will be included in the release indicated by the issue milestone. and removed punted-for-2.0 labels Jun 28, 2017
@bricelam bricelam modified the milestones: 2.0.0, Backlog Jun 28, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
closed-fixed The issue has been fixed and is/will be included in the release indicated by the issue milestone. regression type-bug
Projects
None yet
Development

No branches or pull requests

2 participants