This post originated from an RSS feed registered with Java Buzz
by Goldy Lukka.
Original Post: Fatal Error? Get a mail!
Feed Title: Xyling Java Blogs
Feed URL: http://www.javablogs.xyling.com/thisWeek.rss
Feed Description: Your one stop source for Java Related Resources.
How do you know when your application suffers a major stroke?
Even if your application logs an error to a local file, you/developer doesn't know there's a problem until a user notices it and sends the log file back. It can be more useful for apps to email their own error messages. And as Sean C. Sullivan explains, it's not hard to do with either log4j or java.util.logging.
The author also explains the similarities and difference between Log4J and Logger (java's inbuilt java.util.Logger).
Source code included.
[Resource-Type: Article; Category: Logging/Log4j, Java/Logging; XRating: 5; Level: Adv] * Title of the post takes you to the article at OnJava