[Zope-dev] FW: [Zope-dev] [Fwd: [Zope] External method writing to a log]
Rik Hoekstra
hoekstra@fswrul.fsw.leidenuniv.nl
Tue, 15 Jun 1999 10:18:01 +0200
> -----Original Message-----
> From: root@curtin.edu.au [mailto:root@curtin.edu.au]On Behalf Of Martin
> Dougiamas
> Sent: dinsdag 15 juni 1999 10:03
> To: zope-dev@zope.org
> Subject: [Zope-dev] [Fwd: [Zope] External method writing to a log]
>
>
> In zope@zope.org, I asked this and I'm now asking in zope-dev:
> >
> > I want to create an external method to append to a log file
> > (for almost every access to the Zope site).
> >
> > Obviously opening and closing files this often is going to
> > get a bit silly.
> >
> > Is there a way to keep a file open for the whole time
> > that the Zope server is running? Or do I need to create
> > some completely separate OS-level process that handles
> > the file, and just gets called by the external method?
> >
You may want to look at the logger.py code in the ZServer/medusa part of the
distribution. It seems perfectly fit for you purposes.
Rik