Redirecting output at Thread level
I am pretty sure i know the answer, but you never know...some smart guy out there might be able to clue me into a different perspective.
What i would like to do is to tell the Thread...hey, dude, ALL your output regardless of what you are using: System.out, System.err etc. i want it directed to a file.
Unfortunately i doubt such a facility exists...and that i have to replace all the System.xxx to a proprietary file i create using a FileWriter.
It is a shame that i can not subclass System.out or System.err as they are final.
Thanks for your consideration of this question.