Mercurial > moin > 1.9
view MoinMoin/xmlrpc/putClientInfo.py @ 0:77665d8e2254
tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
(automatically generated log message)
imported from: moin--main--1.5--base-0
author | Thomas Waldmann <tw-public@gmx.de> |
---|---|
date | Thu, 22 Sep 2005 15:09:50 +0000 |
parents | |
children | bb2e053067fb |
line wrap: on
line source
""" This is a wiki xmlrpc plugin doing some usage logging. It enables server admins to see how many clients use xmlrpc how often. It also helps MoinMoin development team to improve xmlrpc stuff and get some statistics about MoinMoin usage. @copyright: 2004 Thomas Waldmann @license: GNU GPL, see COPYING for details. """ import os, time def execute(xmlrpcobj, action, site): t = time.time() logentry = '%d %s %s\n' % (t, action, site) log = open(os.path.join(xmlrpcobj.request.cfg.data_dir, 'xmlrpc-log'), 'a') log.write(logentry) log.close() return 0