{"id":19039386,"url":"https://github.com/xolox/python-verboselogs","last_synced_at":"2026-03-06T21:33:21.906Z","repository":{"id":8721474,"uuid":"10392640","full_name":"xolox/python-verboselogs","owner":"xolox","description":"Verbose logging for Python's logging module","archived":false,"fork":false,"pushed_at":"2023-12-16T09:38:25.000Z","size":48,"stargazers_count":38,"open_issues_count":8,"forks_count":8,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-11-28T12:39:46.382Z","etag":null,"topics":["logging","python"],"latest_commit_sha":null,"homepage":"http://verboselogs.readthedocs.io/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/xolox.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2013-05-30T21:39:42.000Z","updated_at":"2025-07-08T16:37:50.000Z","dependencies_parsed_at":"2024-06-18T10:54:45.839Z","dependency_job_id":"a1175823-f6c3-496e-87e9-b8a2a9b9573b","html_url":"https://github.com/xolox/python-verboselogs","commit_stats":{"total_commits":36,"total_committers":4,"mean_commits":9.0,"dds":"0.13888888888888884","last_synced_commit":"3cebc69e03588bb6c3726c38c324b12732989292"},"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"purl":"pkg:github/xolox/python-verboselogs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xolox%2Fpython-verboselogs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xolox%2Fpython-verboselogs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xolox%2Fpython-verboselogs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xolox%2Fpython-verboselogs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xolox","download_url":"https://codeload.github.com/xolox/python-verboselogs/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xolox%2Fpython-verboselogs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30198661,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-06T19:07:06.838Z","status":"ssl_error","status_checked_at":"2026-03-06T18:57:34.882Z","response_time":250,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["logging","python"],"created_at":"2024-11-08T22:12:44.249Z","updated_at":"2026-03-06T21:33:21.882Z","avatar_url":"https://github.com/xolox.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"verboselogs: Verbose logging level for Python's logging module\n==============================================================\n\n.. image:: https://travis-ci.org/xolox/python-verboselogs.svg?branch=master\n   :target: https://travis-ci.org/xolox/python-verboselogs\n\n.. image:: https://coveralls.io/repos/xolox/python-verboselogs/badge.png?branch=master\n   :target: https://coveralls.io/r/xolox/python-verboselogs?branch=master\n\nThe verboselogs_ package extends Python's logging_ module to add the log levels\nNOTICE_, SPAM_, SUCCESS_ and VERBOSE_:\n\n- The NOTICE level sits between the predefined WARNING and INFO levels.\n- The SPAM level sits between the predefined DEBUG and NOTSET levels.\n- The SUCCESS level sits between the predefined WARNING and ERROR levels.\n- The VERBOSE level sits between the predefined INFO and DEBUG levels.\n\nThe code to do this is simple and short, but I still don't want to copy/paste\nit to every project I'm working on, hence this package. It's currently tested\non Python 2.6, 2.7, 3.4, 3.5, 3.6 and PyPy.\n\n.. contents::\n   :local:\n   :depth: 2\n\nInstallation\n------------\n\nThe verboselogs package is available on PyPI_ which means installation should\nbe as simple as:\n\n.. code-block:: sh\n\n   $ pip install verboselogs\n\nThere's actually a multitude of ways to install Python packages (e.g. the `per\nuser site-packages directory`_, `virtual environments`_ or just installing\nsystem wide) and I have no intention of getting into that discussion here, so\nif this intimidates you then read up on your options before returning to these\ninstructions ;-).\n\nUsage\n-----\n\nIt's very simple to start using the verboselogs package:\n\n\u003e\u003e\u003e import logging, verboselogs\n\u003e\u003e\u003e logger = verboselogs.VerboseLogger('verbose-demo')\n\u003e\u003e\u003e logger.addHandler(logging.StreamHandler())\n\u003e\u003e\u003e logger.setLevel(logging.VERBOSE)\n\u003e\u003e\u003e logger.verbose(\"Can we have verbose logging? %s\", \"Yes we can!\")\n\nHere's a skeleton of a very simple Python program with a command line interface\nand configurable logging:\n\n.. code-block:: python\n\n   \"\"\"\n   Usage: demo.py [OPTIONS]\n\n   This is the usage message of demo.py. Usually\n   this text explains how to use the program.\n\n   Supported options:\n     -v, --verbose  make more noise\n     -h, --help     show this message and exit\n   \"\"\"\n\n   import getopt\n   import logging\n   import sys\n   import verboselogs\n\n   logger = verboselogs.VerboseLogger('demo')\n   logger.addHandler(logging.StreamHandler())\n   logger.setLevel(logging.INFO)\n\n   # Command line option defaults.\n   verbosity = 0\n\n   # Parse command line options.\n   opts, args = getopt.getopt(sys.argv[1:], 'vqh', ['verbose', 'quiet', 'help'])\n\n   # Map command line options to variables.\n   for option, argument in opts:\n       if option in ('-v', '--verbose'):\n           verbosity += 1\n       elif option in ('-q', '--quiet'):\n           verbosity -= 1\n       elif option in ('-h', '--help'):\n           print __doc__.strip()\n           sys.exit(0)\n       else:\n           assert False, \"Unhandled option!\"\n\n   # Configure logger for requested verbosity.\n   if verbosity \u003e= 4:\n       logger.setLevel(logging.SPAM)\n   elif verbosity \u003e= 3:\n       logger.setLevel(logging.DEBUG)\n   elif verbosity \u003e= 2:\n       logger.setLevel(logging.VERBOSE)\n   elif verbosity \u003e= 1:\n       logger.setLevel(logging.NOTICE)\n   elif verbosity \u003c 0:\n       logger.setLevel(logging.WARNING)\n\n   # Your code goes here.\n   ...\n\nIf you want to set VerboseLogger_ as the default logging class for all\nsubsequent logger instances, you can do so using `verboselogs.install()`_:\n\n.. code-block:: python\n\n   import logging\n   import verboselogs\n\n   verboselogs.install()\n   logger = logging.getLogger(__name__) # will be a VerboseLogger instance\n\nPylint plugin\n-------------\n\nIf using the above `verboselogs.install()`_ approach, Pylint_ is not smart\nenough to recognize that logging_ is using verboselogs, resulting in errors\nlike::\n\n   E:285,24: Module 'logging' has no 'VERBOSE' member (no-member)\n   E:375,12: Instance of 'RootLogger' has no 'verbose' member (no-member)\n\nTo fix this, verboselogs provides a Pylint plugin verboselogs.pylint_ which,\nwhen loaded with ``pylint --load-plugins verboselogs.pylint``, adds the\nverboselogs methods and constants to Pylint's understanding of the logging_\nmodule.\n\nOverview of logging levels\n--------------------------\n\nThe table below shows the names, `numeric values`_ and descriptions_ of the\npredefined log levels and the VERBOSE, NOTICE, and SPAM levels defined by this\npackage, plus some notes that I added.\n\n========  =====  =============================  =============================\nLevel     Value  Description                    Notes\n========  =====  =============================  =============================\nNOTSET    0      When a logger is created, the  This level isn't intended to\n                 level is set to NOTSET (note   be used explicitly, however\n                 that the root logger is        when a logger has its level\n                 created with level WARNING).   set to NOTSET its effective\n                                                level will be inherited from\n                                                the parent logger.\nSPAM      5      Way too verbose for regular\n                 debugging, but nice to have\n                 when someone is getting\n                 desperate in a late night\n                 debugging session and decides\n                 that they want as much\n                 instrumentation as possible!\n                 :-)\nDEBUG     10     Detailed information,          Usually at this level the\n                 typically of interest only     logging output is so low\n                 when diagnosing problems.      level that it's not useful\n                                                to users who are not\n                                                familiar with the software's\n                                                internals.\nVERBOSE   15     Detailed information that\n                 should be understandable to\n                 experienced users to provide\n                 insight in the software's\n                 behavior; a sort of high\n                 level debugging information.\nINFO      20     Confirmation that things\n                 are working as expected.\nNOTICE    25     Auditing information about\n                 things that have multiple\n                 success paths or may need to\n                 be reverted.\nWARNING   30     An indication that something\n                 unexpected happened, or\n                 indicative of some problem\n                 in the near future (e.g.\n                 ‘disk space low’). The\n                 software is still working\n                 as expected.\nSUCCESS   35     A very explicit confirmation\n                 of success.\nERROR     40     Due to a more serious\n                 problem, the software has not\n                 been able to perform some\n                 function.\nCRITICAL  50     A serious error, indicating\n                 that the program itself may\n                 be unable to continue\n                 running.\n========  =====  =============================  =============================\n\nContact\n-------\n\nThe latest version of verboselogs is available on PyPI_ and GitHub_. The\ndocumentation is hosted on `Read the Docs`_. For bug reports please create an\nissue on GitHub_. If you have questions, suggestions, etc. feel free to send me\nan e-mail at `peter@peterodding.com`_.\n\nLicense\n-------\n\nThis software is licensed under the `MIT license`_.\n\n© 2017 Peter Odding.\n\n.. External references:\n.. _descriptions: http://docs.python.org/howto/logging.html#when-to-use-logging\n.. _GitHub: https://github.com/xolox/python-verboselogs\n.. _logging: http://docs.python.org/library/logging.html\n.. _MIT license: http://en.wikipedia.org/wiki/MIT_License\n.. _NOTICE: http://verboselogs.readthedocs.io/en/latest/api.html#verboselogs.NOTICE\n.. _numeric values: http://docs.python.org/howto/logging.html#logging-levels\n.. _per user site-packages directory: https://www.python.org/dev/peps/pep-0370/\n.. _peter@peterodding.com: peter@peterodding.com\n.. _Pylint: https://pypi.python.org/pypi/pylint\n.. _PyPI: https://pypi.python.org/pypi/verboselogs\n.. _Read the Docs: https://verboselogs.readthedocs.io\n.. _SPAM: http://verboselogs.readthedocs.io/en/latest/api.html#verboselogs.SPAM\n.. _SUCCESS: http://verboselogs.readthedocs.io/en/latest/api.html#verboselogs.SUCCESS\n.. _VERBOSE: http://verboselogs.readthedocs.io/en/latest/api.html#verboselogs.VERBOSE\n.. _VerboseLogger: http://verboselogs.readthedocs.io/en/latest/api.html#verboselogs.VerboseLogger\n.. _verboselogs.install(): http://verboselogs.readthedocs.io/en/latest/api.html#verboselogs.install\n.. _verboselogs.pylint: http://verboselogs.readthedocs.io/en/latest/api.html#verboselogs.pylint\n.. _verboselogs: https://pypi.python.org/pypi/verboselogs/\n.. _virtual environments: http://docs.python-guide.org/en/latest/dev/virtualenvs/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxolox%2Fpython-verboselogs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxolox%2Fpython-verboselogs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxolox%2Fpython-verboselogs/lists"}