Re: Proposal: Logging system rewrite

Steven Armstrong <[email protected]>
Newsgroups gmane.comp.web.pyblosxom.devel
Message-ID <[email protected]>
Ok, the proposed logging system is in CVS.

Instead of writing some logger class I emulated the relevant parts of
python 2.3's logging API and stuck the code in it's own module
(Pyblosxom._logging.py). Like this, if we some day migrate to python 2.3
for good, we can just remove that module and the code in tools works
without changes.

Please note that I've removed the tools.make_logger function. At first I
wasn't sure if I should do that, but then thought it's actually a good
idea. Like this, plugins that still use it will trigger an exception
which makes it easy to find and fix them.

Maybe it would be a good idea to place some log.debug("whatever")
statements at critical places in the codebase. If a user then reports
problems we can tell him to raise the log_level to "debug" to get some
data to work with.

Feedback, improvements, bugreports welcome.

cheers
Steven


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.