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

Provide ability to temporarily configure the logger #132

Open
jonrkarr opened this issue Aug 23, 2021 · 0 comments
Open

Provide ability to temporarily configure the logger #132

jonrkarr opened this issue Aug 23, 2021 · 0 comments

Comments

@jonrkarr
Copy link
Contributor

The current logging methods (set_formatter, set_level, file_logger) provide the ability to set logging globally. This creates the possiblity to two clients could configure the logger differently, causing problems for the other.

Two possible resolutions:

  • Provide a way to set the formatter in a local context. Then each client can create its own separate, isolated configuration.
  • Provide methods for getting the current logger configuration. Clients could then use to restore the global logger settings and they are finished.
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

No branches or pull requests

1 participant