I have a program that is spawning multiple threads dynamically. I'd like to introduce logging so that each thread can log to its own log file.
Using Enterprise Library 4.1, is it possible for each thread (created dynamically at runtime) to log to a unique log file associated with that thread?
For example
Thread 1 -> mylog1.log Thread 2 -> mylog2.log ... Thread N -> mylogN.log
I've read the following threads which have shed light but failed to provide a viable solution.
Write to multiple files Enterprise Library Logger
Entreprise Library Rolling flat file is not rolling
Implementing Log file using Enterprise Library in asp.net
Microsoft Logging application block and multi-threading
Should I be looking at another framework that is capable of this? Log4net?
Thanks