I have some legacy code (or rather some code we don\'t control but we have to use) that writes a lot of statements to system.out/err.
At the same time, we are using
You should not need to wrap around the custom logging system you are using. When the application initializes, just create a LoggingOutputStream and set that stream on the System.setOut() and System.setErr() methods with the logging level that you desire for each. From that point forward, any System.out statements encountered in the application should go directly to the log.