[summerofcode] logging in standard library
Liu Jin
cpp at vip.163.com
Mon Jun 6 16:53:01 CEST 2005
Hi,
I'm quite interested in PEP 337: Logging Usage in the Standard
Library, and here is my question:
The PEP prosopals 'print' and 'sys.stdout.write' to be replaced with
'_log.{debug|info}', but
1 shouldn't it be {warning|error|critical}?
2 and in addition to logging errors, should we always log important
data (such as http header in urllib2)? As I understand it, if it's
logged as DEBUG or INFO, it won't hurt performance unless logging
level is explicitly set to DEBUG/INFO. When using urllib2 I had to
inspect its internal with debugger if something goes wrong. With
logging things would be much easier.
Regards,
Liu Jin
More information about the summerofcode
mailing list