Skip to content
Myr

don't access app.logger when configuring app.logger

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by David Lord · committed by David Lord · parent b739390 · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:docs/logging.rst+1 added-1 removed
157 unmodified lines
158Depending on your project, it may be more useful to configure each logger you159care about separately, instead of configuring only the root logger. ::160161 for logger in (162 app.logger,162 logging.getLogger(app.name),163 logging.getLogger('sqlalchemy'),164 logging.getLogger('other_package'),165 ):166 logger.addHandler(default_handler)
17 unmodified lines