{"categories":[{"label":"Quality Assurance","url":"https://skillfed.io/packages/category/software-development-quality-assurance/4"}],"enrichment":{"capability":"A Flake8 plugin that detects and flags common mistakes in Python's standard library logging module, including improper logger instantiation, incorrect getLogger() usage, LogRecord attribute clashes, and misuse of exception logging methods.","skillfed_tags":["logging-linter","flake8-plugin","code-quality"],"use_cases":["Catch direct Logger() instantiation that bypasses the logger tree and configuration.","Enforce consistent logger naming with __name__ to ensure proper hierarchical organization.","Prevent runtime KeyError crashes from LogRecord attribute name collisions in extra dicts.","Ensure exception() is only called within exception handlers where it captures context automatically.","Enforce clearer logging patterns by flagging redundant or contradictory exc_info arguments."],"what_it_does":"flake8-logging is a Flake8 plugin that enforces logging best practices from Python's standard library documentation. It detects eight categories of logging mistakes: direct Logger instantiation instead of getLogger(), using __file__ or __cached__ instead of __name__ with getLogger(), LogRecord attribute name clashes in the extra dict, calling exception() outside exception handlers, calling error() instead of exception() within handlers, redundant exc_info arguments, using exception() with exc_info=False, and deprecated warn() calls.\n\nThe plugin integrates directly into your Flake8 workflow and flags violations with specific rule codes (LOG001 through LOG008). It's designed for teams that want to catch logging configuration and usage errors before they reach production, where misconfigured loggers can silently fail to report errors or send messages only to stderr.","worth_installing":"Yes. This is a focused, well-maintained Flake8 plugin with no dependencies beyond Flake8 itself, zero known vulnerabilities, and clear value for teams using Python's standard logging module. The rules target real bugs that can silently break logging in production. Install it if you use Flake8 and want to prevent common logging mistakes."},"id":"flake8-logging","links":{"html":"https://skillfed.io/packages/flake8-logging","md":"https://skillfed.io/packages/flake8-logging.md","pypi":"https://pypi.org/project/flake8-logging/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2025-09-08","license_spdx":"MIT","license_treatment":"permissive","name":"flake8-logging","python_support":"supports_current","summary":"A Flake8 plugin that checks for issues using the standard library logging module."},"popularity":{"monthly_downloads":96608,"position":13204,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"1.8.0"}
