Skip to content

Implement flake8-logging #7248

@LaBatata101

Description

@LaBatata101

Issue to track the implementation of flake8-logging rules.

  • LOG001 use logging.getLogger() to instantiate loggers
  • LOG002 use __name__ with getLogger()
  • LOG003 extra key '<key>' clashes with LogRecord attribute / Covered by G101
  • LOG004 avoid exception() outside of exception handlers
  • LOG005 use exception() within an exception handler / Covered by TRY400
  • LOG006 redundant exc_info argument for exception() / Covered by G202
  • LOG007 use error() instead of exception() with exc_info=False
  • LOG008 warn() is deprecated, use warning() instead / Covered by G010
  • LOG009 WARN is undocumented, use WARNING instead
  • LOG010 exception() does not take an exception
  • LOG011 avoid pre-formatting log messages / Covered by G004, G003, G002, G001
  • LOG012 formatting error: <n> <style> placeholders but <m> arguments
  • LOG013 formatting error: <missing/unreferenced> keys: <keys>
  • LOG014 avoid exc_info=True outside of exception handlers
  • LOG015 avoid logging calls on the root logger

Metadata

Metadata

Assignees

No one assigned

    Labels

    pluginImplementing a known but unsupported plugin

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions