[Zope] Write log file from script

Brian Sullivan briansullivan at gmail.com
Fri Oct 7 13:39:53 EDT 2005


On 10/7/05, Tino Wildenhain <tino at wildenhain.de> wrote:
>
> Am Freitag, den 07.10.2005, 09:03 -0700 schrieb Dennis Allison:
> > 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))
> > fd.close()
>
>
> Actually this is a bit dangerous if you dont lock
> the file.
>
> import zLOG
>
> def log(self,message):
> zLOG.LOG("PythonScript", zLOG.INFO <http://zLOG.INFO>, message)
>
>
> as external method should be enough.
>
>  And where does this log information end up?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.zope.org/pipermail/zope/attachments/20051007/d501b8a8/attachment.htm


More information about the Zope mailing list