Fwd: question on logging module - solved

frank zhu frank.zhu.mingyu at gmail.com
Wed May 19 21:14:00 EDT 2010


FYI.

---------- Forwarded message ----------
From: Cameron Simpson <cs at zip.com.au>
Date: Wed, May 19, 2010 at 6:18 PM
Subject: Re: question on logging module
To: frank zhu <frank.zhu.mingyu at gmail.com>


On 19May2010 11:55, frank zhu <frank.zhu.mingyu at gmail.com> wrote:
| Thanks Cameron. That was the problem. I copied the sample code and named
it
| logging.py. which was bad.

You might want to post this info to the list to save follow-on
discussion.

One way to check that what you want actually happened is like this:

 [/Users/cameron]g4*> python
 Python 2.6.5 (r265:79063, May 17 2010, 14:44:07)
 [GCC 4.0.1 (Apple Inc. build 5493)] on darwin
  Type "help", "copyright", "credits" or "license" for more information.
 >>> import logging
  >>> sorted(logging.__dict__.keys())

which will report the names in what you imported.

Cheers,
--
Cameron Simpson <cs at zip.com.au> DoD#743
http://www.cskk.ezoshosting.com/cs/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20100519/1c7dd017/attachment.html>


More information about the Python-list mailing list