generating a processing log

I would like to start generating a log each time a script is run to log the number of files processed and the time the script spent processing those files.

I have this script as a start…

set StartTime to current date
MySubroutine() --Example handler
set EndTime to current date
set SubRoutineTimeDuration to (EndTime - StartTime)

on MySubroutine()
	read (choose file)
end MySubroutine

We have many users of these scripts, but they run them off of their desktops and not off of a server. Could I start collecting this data from the users machine and start a running log of: The script used, the user, the time the script spent processing the files, the number of files processed?

would it be best to have the user keep a folder on their desktop that has actions set up to send the log file to a server or would there be a better way?

I realize the above script is a far way off, I just need a starting point.

thank you.

Browser: Safari 525.27.1
Operating System: Mac OS X (10.4)

There are a lot of different ways this can be handled and ultimately the best solution depends on your environment and how much you want to put into this.

¢ You could simply collect logs from everyones workstations periodically or script their upload
¢ You could set up a syslog server and have all script remotely log to that
¢ You could set up a mySQL database on a central machine and log to that

And I’m sure there are other options as well, but those are what immediately came to mind.