root-logger-call (LOG015)
Added in 0.10.0 · Related issues · View source
Derived from the flake8-logging linter.
What it does
Checks for usages of the following logging top-level functions:
debug, info, warn, warning, error, critical, log, exception.
Why is this bad?
Using the root logger causes the messages to have no source information, making them less useful for debugging.
Example
Use instead: