Hello
I really hope someone can help me with this issue!
I'm using listeners to log application actions to a file.
The listners is initalized in the app.exe.config file using the following
section:
<system.diagnostics>
<trace autoflush="true" indentsize="2">
<listeners>
<add name="myListener"
type="System.Diagnostics.TextWriterTraceListener"
initializeData="MyClient.log" />
</listeners>
</trace>
</system.diagnostics>
This works nicely on a single computer installation. However, we're now
going to install on terminal servers, and this will blow up as all clients
will attemt to log to the same file.
How can I get the trace output to be redirected to a file specific to the
logged on user?
Best regrards, TEK
|