code: protected static void captureSystemStreams(boolean captureOut, boolean captureErr){
      if(captureOut){
        System.setOut(new RedwoodPrintStream(STDOUT, realSysOut));
      }
      if(captureErr){
        System.setErr(new RedwoodPrintStream(STDERR, realSysErr));
      }
    }
docs: Captures System.out and System.err and redirects them
  to Redwood logging.
  @param captureOut True is System.out should be captured
  @param captureErr True if System.err should be captured