{"id":23909,"library":"jaraco-logging","title":"jaraco.logging","description":"A utility library for Python logging that provides additional log levels (like NOTICE and TRACE), a filtering handler, and a log suppression context manager. Current version is 3.4.0, supports Python >=3.9, and is maintained as part of the jaraco project. Releases are frequent.","status":"active","version":"3.4.0","language":"python","source_language":"en","source_url":"https://github.com/jaraco/jaraco.logging","tags":["logging","utilities","jaraco","context-manager"],"install":[{"cmd":"pip install jaraco-logging","lang":"bash","label":"PyPI"}],"dependencies":[],"imports":[{"note":"Package uses underscore in namespace, not hyphen.","wrong":"from jaraco_logging import add_level","symbol":"add_level","correct":"from jaraco.logging import add_level"},{"note":"Handler is in the convenience 'handlers' module.","symbol":"FilteringHandler","correct":"from jaraco.logging.handlers import FilteringHandler"}],"quickstart":{"code":"import logging\nfrom jaraco.logging import add_level, suppress\n\n# Add a custom TRACE level (value 5)\nadd_level('TRACE', 5)\nlogger = logging.getLogger(__name__)\nlogger.trace('This is a trace message')\n\n# Suppress all logging for a block\nwith suppress():\n    logger.info('This will not appear')\n","lang":"python","description":"Add custom log levels and use the suppress context manager."},"warnings":[{"fix":"Use unique level names or only add levels in isolated modules.","message":"add_level modifies the logging module globally. It may conflict with other libraries that add the same level names.","severity":"gotcha","affected_versions":"all"},{"fix":"Use 'from jaraco.logging import suppress' instead of 'LogSuppressor'.","message":"The old 'LogSuppressor' class (used as a context manager) was renamed to 'suppress' in v3.0.0.","severity":"deprecated","affected_versions":"<3.0.0"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Use: from jaraco.logging import suppress\nwith suppress(): ...","cause":"LogSuppressor was renamed to suppress in v3.0.0.","error":"AttributeError: module 'jaraco.logging' has no attribute 'LogSuppressor'"},{"fix":"Use: from jaraco.logging import add_level","cause":"Wrong import path: using hyphen instead of dot.","error":"ImportError: cannot import name 'add_level' from 'jaraco_logging'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}