Here is the dump of the attachment:
<configuration>
<system.diagnostics>
<!-- configuration for logging -->
<trace autoflush="true">
<listeners>
<!-- Set the log file: initializeData = path\name -->
<add name="logFile" type="System.Diagnostics.TextWriterTraceListener"
initializeData="EP200.log" />
</listeners>
</trace>
<switches>
<!-- Set the trace level here: value 0 = off, 1 = error, 2 = warning, 3 =
info, 4 = verbose -->
<add name="General" value="4" />
</switches>
</system.diagnostics>
</configuration>
This works fine once in a while, but most of the time when I restart the
application, no messages are written to the file.
> I am using the Trace.Write method to output debug statements throughout my
> code. I have created the attached configuration file for settings.
> However, more often than not, the messages are not being output to the file.
> From the debugger, I can tell that my TextWriterTraceListener is set
> correctly. Has anyone else experienced this problem?
Dino Chiesa [Microsoft] - 03 Nov 2004 17:19 GMT
are you flushing?
it's good hygiene.
;)
Trace.Flush() ;
it could be just that the listener has buffered trace writes.
> Here is the dump of the attachment:
> <configuration>
[quoted text clipped - 26 lines]
>> From the debugger, I can tell that my TextWriterTraceListener is set
>> correctly. Has anyone else experienced this problem?