Depends upon what you want to do and how much access  you have.  For 
debugging purposes I often use an external procedure

def debugWindow( data ):
   fd = open('/tmp/debugWindow",'a')
   fd.write( str(data))

and look at the output with 

   tail -f /tmp/debugWindow

Or, you can use the same approach to write to syslog using the Python 
logging module

Or you can piggyback into the Zope logging mechanism--see the sources for 
that exercise.

I find the external procedure approach to be useful in its simplicity

On Fri, 7 Oct 2005, Brian Sullivan wrote:

> I am looking for a simple strategy to write a debug log file from a python
> script.
>  I used to have such a beast but somewhere in a shuffle it got lost -- and
> my brain seems to be dead this morning trying to figure it out.
>  Anybody out there have something like this or a url explaining how to do
> it?

Zope maillist  -
**   No cross posts or HTML encoding!  **
(Related lists - )

Reply via email to