[Zope] A question about logging and Zope

Michel Pelletier michel@digicool.com
Fri, 17 Sep 1999 11:26:10 -0400


> -----Original Message-----
> From: Oliver Andrich [mailto:olli@rhein-zeitung.de]
> Sent: Friday, September 17, 1999 8:06 AM
> To: Zope@zope.org
> Subject: [Zope] A question about logging and Zope
> 
> 
> Hi,
> 
> I am nearly finished with my first inhouse Zope application - 
> a frontend to
> the userdatabase that we use to manage our customers. 
> Everything went really
> fine, but I like to log all actions that user do to a SQL 
> database, cause I
> like to make the logfile entrys for each Userobject (in my 
> database) viewable. 
> 
> can I implement a new logging facility based on the zLOG.py 
> file or how can I
> implement a logging facility myself? Any hints are highly 
> appreciated and if I
> am to dumb to find the info, then please help me anyway. ;-))))

I would suggest implimenting your own zLOG module.  If you look in
lib/python/Zope/ZLogger, you'll see there are a few other logger types
to use as a model (for example, FileLogger.py is just a stub, intellgent
file logging is not done yet, but by looking at the code you get the
idea).

-Michel