Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • BackTrack 5 R2
  • Wine 1.4 / 1.5.5
  • Mozilla Firefox 12...
  • Ubuntu 11.04
  • Angry Birds 1.1.2.1
  • Ubuntu 10.04.4 LTS
  • Linux Kernel 3.4
  • Ubuntu Manual 10.10
  • Adobe Flash Player...
  • Pidgin 2.10.4
  • Home > Linux > Programming > Libraries

    logging_tree 1.1

    Download button

    No screenshots available
    Downloads: 81  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Brandon Rhodes | More programs
    BSD License / FREE
    February 18th, 2012, 06:59 GMT [view history]
    ROOT / Programming / Libraries

     Read user reviews (0)  Refer to a friend  Subscribe

    logging_tree description

    Introspect and display the logger tree inside "logging"

    logging_tree is a Python module that introspects the logging logger tree in the Standard Library.

    While you can write programs that call this package's tree() function and examine the hierarchy of logger objects that it finds inside of the Standard Library logging module, the simplest use of this package for debugging is to call printout() to print the loggers, filters, and handlers that your application has configured:

    >>> logging.getLogger('a')
    >>> logging.getLogger('a.b').setLevel(logging.DEBUG)
    >>> logging.getLogger('x.c')
    >>> from logging_tree import printout
    >>> printout()
     ""
     Level WARNING
     |
     o< --"a"
     | |
     | o< --"a.b"
     | Level DEBUG
     |
     o< --[x]
     |
     o< --"x.c"


    The logger tree should always print successfully, no matter how complicated. A node whose [name] is in square brackets is a "place holder" that has never actually been named in a getLogger() call. At the moment handlers and filters are not printed out in a terribly informative manner, but this will improve as I continue to code.

    I owe great thanks to Rover Apps for letting me release this. I developed the core logic that powers this package on their time, but they are letting me retain the copyright and distribute it to the community!

    This package is still under construction and under-documented, but even this primitive release will hopefully help a few of you. I welcome contributions and ideas as this package matures! You can find the bug tracker at the repository page on github. Developers can run this package's tests with:

     python -m unittest discover logging_tree

    On older versions of Python you will instead have to install unittest2 and use its unit2 command line tool to run the tests.

    Product's homepage

    Requirements:

    · Python

    What's New in This Release: [ read full changelog ]

    · Now compatible with 2.3

      


    TAGS:

    logging logger | logger tree | logging | logger | tree



    HTML code for linking to this page:


    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM