Looking for a way programmatically from Java to send System.out both to a file, and to the screen.
If I were running from a command line, I could for instance run: java myProgram | tee myProgram.log
This is not, what I am looking for. I need to do this in the Java code itself.