question on logging module
frank zhu
frank.zhu.mingyu at gmail.com
Tue May 18 23:42:10 EDT 2010
Hi,
>From the python 2.6.4 tutorial, refer to
http://docs.python.org/release/2.6.4/tutorial/stdlib2.html#logging
The above example doesn't work for me.
Here is script log
#############################################
oem at oem-desktop ~ $ python -V
Python 2.6.4
oem at oem-desktop ~ $ python
Python 2.6.4 (r264:75706, Dec 7 2009, 18:45:15)
[GCC 4.4.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import logging
>>> logging.debug('debug information')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: 'module' object has no attribute 'debug'
################################################
I am current using python2.6.4.
Can anyone point out what's problem?
Thanks,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20100518/e6d20b42/attachment.html>
More information about the Python-list
mailing list