Write script output to log file
|Opened on:||Friday, August 20, 2010 - 07:00|
|Last modified:||Sunday, November 11, 2012 - 10:05|
Related to this feedback http://fold.it/portal/node/988087
When a script runs, can the output of the script written to the output window be written to a fixed logfile. Something like foldit.log. It can replace the previous log file, so it only retains the last run.
Place a text header at the top of the file with the name of the script, the name of the puzzle, and the date and time of the run. Besides being useful, this is a safety measure to prevent malicious content from being created by a script. With this info at the top of the file, it should be safe and extremely useful.
Flush the output to the file with each print statement in the script.
We can then write external tools that can analyze the output, even in real time while the script is running.