You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
When developing a system with a large number of dynamic components (e.g. extensions, modules, libraries) the names of the loggers may not be known in advance or may require extensive work to deep dive code and aggregate a list of logger names.
Instead, the log module should expose its internal state allowing developers to programmatically identify all created loggers. This would also enable dynamically adding handlers, changing handler configurations (such as log level), programmatically changing the log level for all created loggers, programmatically changing the log level for loggers matching some pattern, etc.
Describe the solution you'd like
log.handlers and log.loggers as getters for the internal state Maps.
Happy to put together a PR if this is an acceptable direction.
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
When developing a system with a large number of dynamic components (e.g. extensions, modules, libraries) the names of the loggers may not be known in advance or may require extensive work to deep dive code and aggregate a list of logger names.
Instead, the
log
module should expose its internal state allowing developers to programmatically identify all created loggers. This would also enable dynamically adding handlers, changing handler configurations (such as log level), programmatically changing the log level for all created loggers, programmatically changing the log level for loggers matching some pattern, etc.Describe the solution you'd like
log.handlers
andlog.loggers
as getters for the internal state Maps.Happy to put together a PR if this is an acceptable direction.
The text was updated successfully, but these errors were encountered: