I have already looked into several SFO Links e.g. for a solution. What I have is code written by my colleague which has around 30 methods, and involves nested loops. The problem with this is when I try to run the code in eclipse, the console output has the long-tail issue.
What I was looking in was to print the results (intermediate results) on the console as well as on to a file (without making changes to all the sysout commands within all methods).
What I have done now is something like this
PrintStream out = new PrintStream(new FileOutputStream("output.txt"));
System.setOut(out);
But this only write to a file and not on the display.