I want to catch the println and redirect to a file and print it
here is my code, I wish to print 123 /n 456
but that doesn\'t work and I think I need something t
You should redirect the out stream to a file like this:
out
System.setOut(new PrintStream(new File(""));
this will redirect all your system.out in the log file. hope this helps.
system.out