Error reporting to an external file

I am working on an OF project that needs to run for a year in a public place. I am thinking it might be useful to have a running error log in an external file. Essentially I want to catch everything that would normally print to the console and continuously save it to an external file. I could use this to check its performance stats and look back on to see what happened if the application crashes.

Any recommendations on how to implement this? Or alternative error reporting systems?

you can just do:

ofLogToFile("logfile.log")

if the installation is going to be started everyday or so you can do:

ofLogToFile(ofGetDateTimestamp() + ".log")

so it logs to a different file with the date every day

Perfect. Thanks!