[Zope] Re: [Plone-users] Logging user actions

Jesper Holmberg jesperh at dsv.su.se
Wed Oct 22 03:29:06 EDT 2003


Thank you Chris, I'll have a look at it. The only problem, it seems to me,
is that I use a lot of the different Zope/CMF/Plone products, and if I
have to manually add a .note-statement to all relevant transactions, it is
really a lot of work, and almost impossible to maintain. I would need
some logging functionality that could easily be hooked on to the different
actions. Or am I misunderstanding your suggestion?

Jesper


* On Tue Oct 21, Chris McDonough wrote:
> You could make use of the undo facility itself by using the .note method
> of a transaction from Python:
> 
> t = get_transaction()
> t.note('Did something')
> 
> This information will show up in the undo log.
> 
> You cannot do this from a Python Script, you'll need to do it from
> within Product code or from an external method after each event of
> significance in your site.
> 
> On Tue, 2003-10-21 at 10:48, Jesper Holmberg wrote:
> > I would like to be able to track what our users are doing at our Plone site,
> > since we are doing research on their behavior. To that end, I would like to
> > get as comprehensible an log of what they are doing as possible. It is not
> > strictly necessary to view exactly which pages are viewed by which user, but
> > at least I would like to log all changes made to the site; if not the exact
> > change, at least the fact that a certain page, or a certain content has been
> > changed by a certain user.
> > 
> > I have studied the logs, Z2.log, Z2-detailed.log, and the event log, but
> > they don't really contain all the information that I am after.
> > 
> > I guess what I am after is a sort of text log version of the information
> > stored in the ZODB and its "Undo" functionality, so that one with
> > reasonable resolution could study the logs and say, "User1 edited his home
> > page, then he added a comment to User2's docuemnt, and sent a message to
> > User3". We don't want to change what they have done, only study them. Do
> > you have any tips about how one could go about doing this?
> > 
> > Jesper
> > 
> > 
> > This SF.net email is sponsored by OSDN developer relations
> > Here's your chance to show off your extensive product knowledge
> > We want to know what you know. Tell us and you have a chance to win $100
> > http://www.zoomerang.com/survey.zgi?HRPT1X3RYQNC5V4MLNSV3E54
> > _______________________________________________
> > Plone-users mailing list
> > Plone-users at lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/plone-users



More information about the Zope mailing list