Hi Umesh, You can write a SysOutErrRedirector which can take out and err streams and use log4j root logger (or any other defined logger) to move it to the associated appender.
Thanks, Himanshu -----Original Message----- From: Umesh Paliwal [mailto:[email protected]] Sent: Monday, January 16, 2012 9:38 PM To: [email protected] Subject: RE: redirecting Stdout and stderr to a different log file Can anyone help me on the issue below. Please From: Umesh Paliwal Sent: Tuesday, January 10, 2012 9:47 AM To: '[email protected]' Subject: redirecting Stdout and stderr to a different log file Hi All, We have lot many sysouts in our project. The sysout are captured in file by using a redirect operator when we launch the server. The maintanence of the files a big issue as these logs keep on growing. Can you please help me find out a strategy if I can redirect all the sysout and stderr into a logging file using log4j. Thanks and regards, Umesh Paliwal The information contained in this e-mail is private & confidential and may also be legally privileged. If you are not the intended recipient, please notify us, preferably by e-mail, and do not read, copy or disclose the contents of this message to anyone. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
