This post originated from an RSS feed registered with Java Buzz
by Simon Brown.
Original Post: Sending stderr to log4j
Feed Title: Simon Brown's weblog
Feed URL: http://www.simongbrown.com/blog/feed.xml?flavor=rss20&category=java
Feed Description: My thoughts on Java, software development and technology.
I'm always surprised that this isn't supported out of the box (at least I don't think it is), but here's a neat little way to send stderr to your log4j log files, etc : Redirecting System.err to log4j. Very useful if you start up Java processes on *NIX and redirect all output to /dev/null. ;-)