is log4j necessary? will
java -jar foo.jar > sysout.txt 2> syserr.txt suffice? ■ DOUGLAS E. WEGSCHEID // LEAD ENGINEER (269) 923-5278 // douglas_e_wegsch...@whirlpool.com "A wrong note played hesitatingly is a wrong note. A wrong note played with conviction is interpretation." Umesh Paliwal <umesh.pali...@vnl.in> 01/17/2012 12:57 AM Please respond to "Log4J Users List" <log4j-user@logging.apache.org> To Log4J Users List <log4j-user@logging.apache.org> cc Subject RE: redirecting Stdout and stderr to a different log file Hi Himanshu, I am able to redirect the sysouts and syserr to a file. But I need them in a individual file so that it is not combined with other logs. Can you help me out Regards, Umesh -----Original Message----- From: Himanshu Gupta [mailto:him...@gmail.com] Sent: Tuesday, January 17, 2012 11:27 AM To: 'Log4J Users List' Subject: RE: redirecting Stdout and stderr to a different log file 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:umesh.pali...@vnl.in] Sent: Monday, January 16, 2012 9:38 PM To: log4j-user@logging.apache.org 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: 'log4j-user@logging.apache.org' 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: log4j-user-unsubscr...@logging.apache.org For additional commands, e-mail: log4j-user-h...@logging.apache.org 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: log4j-user-unsubscr...@logging.apache.org For additional commands, e-mail: log4j-user-h...@logging.apache.org