I have an application which redirect System.out
for example;
System.setOut(new PrintStream(System.out){
@Override
public void print(String string)
{
//TODO: find out who sent the print before processing string
}
});
I want to be able to determine which class is sending the call to print to stdout? I think this is not possible, but cannot fully conclude unless SO
say so.