I had written a debugging/trace loggin class that l have been using to
test and develope my applications...
At first the application was tested and ran as a single thread, with all
output going to a single file, but now the application has been expanded
to run in multiple threads...
the debug class was instantiated as a global variable outside of main
and all classes used this external variable to dump there output to...
something like 'cerr'
Well this was fine while I was only dealing with a single thread...
However now I need that each thread's output go to a different file...
Assuming for simplicity sake that all the classes had 'cerr' hard coded
into them as the location to dump log
messages to...
What would you do to the 'cerr' class in order for each thread to have
it's own output?
TIA
\