The code was designed to build a dll to log trace statements to a text file at customer sites. At the end of the day the customers emails me the text log. The log will default to the directory of the application that called it. You can over ride the default behavior by passing in your own path, file name and file name extension. The existing log is always numerically archived.
Reads control values from the applications ini file.
If you use TraceReadINI then you do not have to use TraceStart. The first parameter can be any length, the sum of the additional parameters is limited to 1024 characters. When true logging is suspended until set back to false. The current log is closed. In the event of multiple programs writing to the same log, the log will not be closed.