Hello Deepali,
sys._getframe is not available in IronPython. If you post the relevant
section of code from the logging module we may be able to suggest a
patch / workaround (disabling some functionality may be the way forward
- but often getframe is used to find a trivial bit of information that
can be supplied another way).
All the best,
Michael Foord
Deepali Abhyankar wrote:
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*
[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>* **| **Tel: +91 (20) 3023 5040*
*Innovation in software product design, development and delivery-
**www.persistentsys.com* <http://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.
------------------------------------------------------------------------
_______________________________________________
Users mailing list
[email protected]
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
--
http://www.ironpythoninaction.com/
_______________________________________________
Users mailing list
[email protected]
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com