This logging method enables logging unhandled application exceptions to a plain ASCII file named log.txt, found at current user's Application Data folder. Logging to a file depends on LogFile variable setting:
[Debug]
LogFile=1
If LogFile variable is set to 1, unhandled errors will get logged to above described log file. If LogFile variable is set to 0, unhandled errors will not get logged to a log file.
Sample contents of an ASCII log file