Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

redirecting standard output/errors to a log4j file

Status
Not open for further replies.

r3krishnan

Programmer
Sep 27, 2004
1
CA

This idea is that I want to have output generated by the method printStackTrace() re-directed to a log4j file as an ERROR. Is there a way to do this?
In general how do you allow the stmt System.err.println() or System.out.println() to be outputed to the log4j file
rather than to the Console?

Thanks,
Raj
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top