{"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":[{"wrong":"from jaraco.logging import add_level","symbol":"add_level","correct":"from jaraco.logging import add_level"}],"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,"search_vec":"'3.4.0':29 '3.9':32 'addit':10 'context':24,49 'context-manag':48 'current':26 'filter':18 'frequent':44 'handler':19 'jaraco':40,47 'jaraco.logging':1 'level':12 'librari':4 'like':13 'log':7,11,22,45 'maintain':35 'manag':25,50 'notic':14 'part':37 'project':41 'provid':9 'python':6,31 'releas':42 'support':30 'suppress':23 'trace':16 'util':3,46 'version':27","created_at":"2026-05-01T08:10:16.222224+00:00","updated_at":"2026-05-01T08:10:16.222224+00:00","problems":{"verify_error":"Traceback (most recent call last):\n  File \"<string>\", line 1, in <module>\nImportError: cannot import name 'add_level' from 'jaraco.logging' (/tmp/tmpvt_vmzmg/venv/lib/python3.12/site-packages/jaraco/logging.py). Did you mean: 'log_level'?"},"ecosystem":"pypi","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":"3.4.0","cli_name":"","cli_version":null,"type":"library","homepage":null,"github":"https://github.com/jaraco/jaraco.logging","docs":null,"changelog":null,"pypi":"https://pypi.org/project/jaraco-logging/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["observability"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"import_fail","verified_at":"2026-07-03","last_verified":"2026-07-03","next_check":"2026-07-10","install_tag":null}}