/** * redirect standard streams to logger */ private static void redirectOutputToLog() { if (LOGGER.isDebugEnabled()) { System.setErr(new DebugLoggingPrintStream("STDERR", System.err)); System.setOut(new DebugLoggingPrintStream("STDOUT", SYSOUT)); } else { System.setErr(new LoggingPrintStream("STDERR", System.err)); System.setOut(new LoggingPrintStream("STDOUT", SYSOUT)); } }
/** * redirect standard streams to logger */ private static void redirectOutputToLog() { System.setErr(new LoggingPrintStream("STDERR", System.err)); System.setOut(new LoggingPrintStream("STDOUT", SYSOUT)); }