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

Allow the client to update the server logging level dynamically #75615

Merged
merged 1 commit into from
Oct 28, 2024

Conversation

dibarbet
Copy link
Member

@dibarbet dibarbet commented Oct 24, 2024

Client side change - dotnet/vscode-csharp#7688

Allows us to update the log level dynamically as the server is running.

builder.SetMinimumLevel(serverConfiguration.MinimumLogLevel);
// The actual logger is responsible for deciding whether to log based on the current log level.
// The factory should be configured to log everything.
builder.SetMinimumLevel(LogLevel.Trace);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As best as I can tell it is not possible to change this level after creation. So we have to check the log level in the logger itself.

@dibarbet dibarbet marked this pull request as ready for review October 25, 2024 18:34
@dibarbet dibarbet requested a review from a team as a code owner October 25, 2024 18:34
@dibarbet dibarbet merged commit 4c6ff9c into dotnet:main Oct 28, 2024
25 checks passed
@dibarbet dibarbet deleted the dynamic_log_level branch October 28, 2024 17:42
@dotnet-policy-service dotnet-policy-service bot added this to the Next milestone Oct 28, 2024
@akhera99 akhera99 modified the milestones: Next, 17.13 P1 Oct 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Infrastructure untriaged Issues and PRs which have not yet been triaged by a lead VSCode
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants