[Zope] Write log file from script

Dennis Allison allison at shasta.stanford.edu
Fri Oct 7 13:47:19 EDT 2005


We are running on a linux host.  The file information ends upon 
in the local file system in the /tmp directory.


On Fri, 7 Oct 2005, Brian Sullivan wrote:

> 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?
> 

-- 



More information about the Zope mailing list