|
Cookbook /
VisitorsLoggingSummary: How to have a clean log of visitor activity for each field of a farm
Version:
Prerequisites:
Status:
Maintainer:
Categories: Administration, WikiFarms
QuestionHow can I have a clean log of my visitors activity for each field of my farm ? AnswerCopy VisitorsLogging.phpΔ to the cookbook directory and add Notes and CommentsLog output :
The script generates one logfile for each day, and deletes old logs automatically.
Per-month directoriesSetting:
$VisitorsLoggingDirectory = "in How to filter actions based on AuthId or Groupname, ...
SDV($VisitorsLoggingIgnoreAuthId, array('stephane@acme.com', 'steph'));
SDV($VisitorsLoggingIgnoreGroup, array('Main', 'Blog'));
...
if (in_array($AuthId, $VisitorsLoggingIgnoreAuthId) == true) return;
if (in_array(FmtPageName('$Group', $pagename), $VisitorsLoggingIgnoreGroup) == true) return;
See Also
Logging to a wiki page instead of a pure text file: Cookbook:ActionLog The latest version is available at http://www.christophedavid.org/w/c/w.php/Files/VisitorsLoggingphp (Do not try to download this, rather point your browser at it - it's a html file displaying the code.) cda Q: Where are the logs kept? Q: I can't get a wikilink either, to list the directory, or to list a file 20060314.txt there. Any tips? /Dagge ContributorsChristophe David original script |