Gurus,
I have a typical situation.
I have a class library in C# having some core functionality. I want to
use Trace feature in this. I noticed that, i can't use TraceSwitch
option as it is tied to the app rather than library. So, i thought of
having my own config xml for library and load the params on loading the
library.
I was able to control the tracing output based on the switch. No
issues!
Before going further, is there any other way to control Trace in a
library?
COming to the next part of the problem, i have a unit test app for the
library. I need to have tracing feature in this as well, for which i
again thought of using tracelistener.
In this situation, i would like to log the app data seperately and lib
data in seperate log files.
Presently, I see all the log data in both the log files, which i don't
want.
What would be the best way to implement logging in this scenario?
TIA.
Sek