{"library":"logging-tree","title":"Logging Tree","description":"The `logging-tree` library provides a simple way to introspect and display the logger hierarchy from Python's built-in `logging` module. It helps developers visualize how loggers are configured, including their levels and handlers. The current version is 1.10, with releases occurring periodically to add minor features or address issues.","language":"python","status":"active","last_verified":"Fri Apr 17","install":{"commands":["pip install logging-tree"],"cli":null},"imports":["from logging_tree import printout"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import logging\nfrom logging_tree import printout\n\n# Configure some loggers to demonstrate the tree\nroot_logger = logging.getLogger()\nroot_logger.setLevel(logging.INFO)\nroot_logger.addHandler(logging.StreamHandler())\n\napp_logger = logging.getLogger('my_app')\napp_logger.setLevel(logging.DEBUG)\n\nmodule_logger = logging.getLogger('my_app.sub_module')\nmodule_logger.setLevel(logging.WARNING)\n\n# Log some messages to ensure loggers are active\nroot_logger.info('Root logger message')\napp_logger.debug('App logger message')\nmodule_logger.warning('Sub-module logger message')\n\n# Display the logging tree\nprint('\\nLogging Tree:')\nprintout()\n","lang":"python","description":"This example configures a basic logging hierarchy and then uses `logging_tree.printout()` to display the structure of all active loggers, their levels, and handlers.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}