[IronPython] Logging module error
Deepali Abhyankar
deepali_abhyankar at persistent.co.in
Tue Dec 2 12:13:03 CET 2008
Hi
I am using Iron Python 2.0 release candidate 2.
I am using logging module
Code is:
Import logging
logger = logging.getLogger("Trial")
logger.setLevel(logging.INFO)
hdlr = logging.FileHandler("data.txt","w")
hdlr.setLevel(logging.INFO)
formatter = logging.Formatter("%(asctime)s-%(name)s-%(message)s")
hdlr.setFormatter(formatter)
logger.addHandler(hdlr)
logger.info(message)
I am facing following error on execution
File "C:\Program Files\IronPython 2.0\Lib\logging\__init__.py", line 985, in
i
nfo
File "C:\Program Files\IronPython 2.0\Lib\logging\__init__.py", line 1094,
in
_log
File "C:\Program Files\IronPython 2.0\Lib\logging\__init__.py", line 1063,
in
findCaller
File "C:\Program Files\IronPython 2.0\Lib\logging\__init__.py", line 71,
in <l
ambda$1>
ValueError: _getframe is not implemented for non-zero depth
Please suggest solution to resolve this
Deepali Abhyankar | Senior Software Engineer| Persistent Systems
<mailto:monika_pardeshi at persistent.co.in>
deepali_abhyankar at persistent.co.in | Tel: +91 (20) 3023 5040
Innovation in software product design, development and delivery-
<http://www.persistentsys.com/> www.persistentsys.com
DISCLAIMER
==========
This e-mail may contain privileged and confidential information which is the property of Persistent Systems Ltd. It is intended only for the use of the individual or entity to which it is addressed. If you are not the intended recipient, you are not authorized to read, retain, copy, print, distribute or use this message. If you have received this communication in error, please notify the sender and delete all copies of this message. Persistent Systems Ltd. does not accept any liability for virus infected mails.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20081202/60eda53e/attachment.html>
More information about the Ironpython-users
mailing list