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

backend/log: Add an "Off" log level and support dynamic log levels. #927

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

joeblubaugh
Copy link

What this PR does / why we need it:

Adds an "Off" log level, and adds the ability to dynamically change the level of an existing logger. The "Off" log level is useful for cleaning up test output when logging isn't needed, or as an emergency fix to stop logging sensitive data quickly. Dynamic log level support is also required for that capability.

Being able to dynamically change the logging level means that re-initialization of systems that share a logger isn't required when the logging level needs to change.

Also adds the ability to change the log level dynamically.
@joeblubaugh joeblubaugh requested a review from a team as a code owner March 13, 2024 06:21
@joeblubaugh joeblubaugh requested review from wbrowne, marefr and xnyo and removed request for a team March 13, 2024 06:21
@marefr
Copy link
Member

marefr commented Mar 20, 2024

Can you give an example where you would use this code, something you can link to?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants