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
In the Flask world, init_app() is used used for manager objects that are Globally instantiated but work in the context of multiple flask apps. Since the Logging instance doesn't really do that, each Logging instance is dedicated to a single app instance, all it's init could happen in __init__().
But, each Logging instance is operating on the Global root logger by default, with some help from clear_keg_handlers() to make sure we don't create duplicate handlers. In essence, this is creating a last-app-loaded-wins situation, which may not be desirable.
The text was updated successfully, but these errors were encountered:
init_app()
is used used for manager objects that are Globally instantiated but work in the context of multiple flask apps. Since the Logging instance doesn't really do that, each Logging instance is dedicated to a single app instance, all it's init could happen in__init__()
.clear_keg_handlers()
to make sure we don't create duplicate handlers. In essence, this is creating a last-app-loaded-wins situation, which may not be desirable.The text was updated successfully, but these errors were encountered: