[IronPython] Cannot use logging module with ipy?

peter lin dingyi.lin at gmail.com
Wed Jul 19 08:36:50 PDT 2006

Dear Sir,
   I test the logging module with ipy

 import sys
 import logging

 #formatter = logging.Formatter("%(asctime)s - %(name)s - %(levelname)s -
 #add formatter to ch
 logger = logging.getLogger("test")
 logger.debug('The Yankees needs no.5 starter!')

 find the error as follows.
 Traceback (most recent call last):
  File c:\dev_tool\IronPython-1.0-Beta9\rsslibtest.py, line 50, in
  File __init__, line unknown, in debug
  File c:\python24\lib\logging\__init__.py, line 955, in debug
  File c:\python24\lib\logging\__init__.py, line 1072, in _log
  File c:\python24\lib\logging\__init__.py, line 1047, in findCaller
  File , line 0, in _getframe##96
ValueError: _getframe is not implemented

Test it in python, it runs ok.

I guess it's another python standard library not yet to find its way to ipy.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: /pipermail/users-ironpython.com/attachments/20060719/29351e93/attachment.html

More information about the users mailing list