[Zope] Newbie question re debugging

Dieter Maurer dieter@handshake.de
Wed, 29 Jan 2003 21:19:48 +0100


pskipwort@touchcorp.com wrote at 2003-1-29 13:33 +1100:
 > Suppose I have a script buried inside a script buried inside a ZPT, and 
 > I want to simply do the equivalent of "print $var" for debugging 
 > purposes, from within my script. What's the easiest way of doing this ? 
 > Can I send output to Z2.log somehow or similar ?
You can not (easily) write to "Z2.log".

But, please read "doc/LOGGING.txt" to learn about a different logging
facility.

By default, it is not available in (internal) Python Scripts.
Read the "Readme" for "PythonScripts" to learn how to make
it available.


Dieter