This project is read-only.

Separate trace listener per instance?

Jun 23, 2014 at 10:06 AM
My program uses two instances of FtpClient, and I have set up a TextWriterTraceListener to log the interactions with the server.

Both instances log to the same file, but I would like each instance of FtpClient to log to a different file - is this possible?

Jun 24, 2014 at 3:16 PM
Edited Jun 24, 2014 at 3:18 PM
It's not possible in its current form. My recommendation would writing a custom TraceListener that directed data based on the Thread ID or parent Process ID.