[pygr-notify] Issue 61 in pygr: adding logging functionality

codesite-noreply at google.com codesite-noreply at google.com
Tue Jan 13 18:24:10 PST 2009


Status: Accepted
Owner: istvan.albert
Labels: Type-Enhancement Priority-Medium

New issue 61 by istvan.albert: adding logging functionality
http://code.google.com/p/pygr/issues/detail?id=61

Purpose of code changes on this branch:

Adding better message logging facilities. Python offers a well behaved
logging module that can be used to format and filter messages. We should
replace all print >>stderr messages with logging calls.

logger.info, logger.warn etc.

See code here:
http://github.com/ialbert/pygr-windows/blob/bed6da2befb2d01bcf5e9ceebdca6115849a1b00/pygr/logger.py

The code above prints the level information, module and function that sent
the message and the message itself for example:

DEBUG  blast.blast_program Could not start the process

Potential pitfall: backwards compatibility (older pythons may have fewer
formatting options)


--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings



More information about the pygr-notify mailing list