protected static void captureSystemStreams ( boolean captureOut , boolean captureErr ) { if ( captureOut ) { System . setOut ( new RedwoodPrintStream ( STDOUT , realSysOut ) ) ; } if ( captureErr ) { System . setErr ( new RedwoodPrintStream ( STDERR , realSysErr ) ) ; } }
Captures System . out and System . err and redirects them to Redwood logging .