You would need to wrap a Logger in a PrintStream, and then do: System.out = new MyPrintStreamWrappedLogger();
HTH ----- Original Message ----- From: "Zsolt Koppany" <[EMAIL PROTECTED]> To: "Log4j-User" <[EMAIL PROTECTED]> Sent: Friday, March 14, 2003 3:49 PM Subject: How to redirect System.err and System.out to log4j? > Hi, > > > how can I redirect System.err and System.out to a log4j appender? In an > existing application there are System.out.println() instructions that I > would like to see in the log4j file. How can I do that? > > > Zsolt > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]