Logging to Driver Station log file

Anyone know how to setup and log in C++ to the log file that is accessed via the Diagnostics->View Log File… button on the driver station? When I click the button it says it can’t find the file and “…Please verify that the correct path and file name are given.”

I would like to log to either a file directly on the cRIO or to the driver station file if not too slow.

Team 4145 is having the same problem - driver station, Diagnostics, View Log File button opens a dialog that says file not found. In our case the file listed in the error is c:\users\driver\appdata\local emp\WPI_Error.txt