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
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@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/plone-users
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@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/plone-users
Jesper Holmberg wrote at 2003-10-21 16:48 +0200:
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.
Check whether the information under the "Undo" tab is enough. It tells you who called what modifying operation when. Note that this information is trimmed when you pack the database. Dieter
* On Tue Oct 21, Dieter Maurer wrote:
Jesper Holmberg wrote at 2003-10-21 16:48 +0200:
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.
Check whether the information under the "Undo" tab is enough. It tells you who called what modifying operation when.
Note that this information is trimmed when you pack the database.
Thanks for your suggestion, Dieter. Yes, the information under the undo-tab is a good start. I was just wondering if there is a possibility to get the information in this tab logged somewhere, or somehow save the information to a file. Jesper
Jesper Holmberg wrote at 2003-10-22 09:34 +0200:
...
Check whether the information under the "Undo" tab is enough. It tells you who called what modifying operation when.
Note that this information is trimmed when you pack the database.
Thanks for your suggestion, Dieter. Yes, the information under the undo-tab is a good start. I was just wondering if there is a possibility to get the information in this tab logged somewhere, or somehow save the information to a file.
You can extract this information periodically (e.g. in an external script accessing ZEO or in an External Method, externally triggered). Please look at the source of the "Undo" tab, for details. Dieter
Jesper Holmberg wrote:
* On Tue Oct 21, Dieter Maurer wrote:
Jesper Holmberg wrote at 2003-10-21 16:48 +0200:
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.
Check whether the information under the "Undo" tab is enough. It tells you who called what modifying operation when.
Note that this information is trimmed when you pack the database.
Thanks for your suggestion, Dieter. Yes, the information under the undo-tab is a good start. I was just wondering if there is a possibility to get the information in this tab logged somewhere, or somehow save the information to a file.
You can always use the same API that the ZMI does to get information. It's not hard to imagine how you'd take a copy of the template that enders this tab, remove the HTML and save it as a file. (It's a template in the Zope source.) --jcc -- "Code generators follow the 80/20 rule. They solve most of the problems, but not all of the problems. There are always features and edge cases that will need hand-coding. Even if code generation could build 100 percent of the application, there will still be an endless supply of boring meetings about feature design." (http://www.devx.com/java/editorial/15511)
participants (4)
-
Chris McDonough -
Dieter Maurer -
J Cameron Cooper -
Jesper Holmberg