¡@

Home 

java Programming Glossary: loggingoutputstream

Redirect System.out and System.err to slf4j

http://stackoverflow.com/questions/11187461/redirect-system-out-and-system-err-to-slf4j

improve this question I solved the problem by useing the LoggingOutputStream for log4j and modified it a little bit for slf4j. import java.io.IOException.. Enable autoflush System.setOut new PrintStream new LoggingOutputStream sysOutLogger false true System.setErr new PrintStream new LoggingOutputStream.. sysOutLogger false true System.setErr new PrintStream new LoggingOutputStream sysErrLogger true true public static void unbindSystemStreams..