public void doRedirects(){
  try {
    if (System.out != psOut) {
      if (psOldOut == null)       psOldOut=System.out;
      psOut=new PrintStream(new RedirectorStream(psOldOut,LogIDs.STDOUT,LogEvent.LT_INFORMATION));
      System.setOut(psOut);
    }
    if (System.err != psErr) {
      if (psOldErr == null)       psOldErr=System.err;
      psErr=new PrintStream(new RedirectorStream(psOldErr,LogIDs.STDERR,LogEvent.LT_ERROR));
      System.setErr(psErr);
    }
  }
 catch (  Throwable e) {
    Debug.printStackTrace(e);
  }
}

public void doRedirects ( ) { try { if ( System . out != psOut ) { if ( psOldOut == null ) psOldOut = System . out ; psOut = new PrintStream ( new RedirectorStream ( psOldOut , LogIDs . STDOUT , LogEvent . LT_INFORMATION ) ) ; System . setOut ( psOut ) ; } if ( System . err != psErr ) { if ( psOldErr == null ) psOldErr = System . err ; psErr = new PrintStream ( new RedirectorStream ( psOldErr , LogIDs . STDERR , LogEvent . LT_ERROR ) ) ; System . setErr ( psErr ) ; } } catch ( Throwable e ) { Debug . printStackTrace ( e ) ; } }
set up stdout / stderr redirects
