Your daily dose of Java and related technologies.
News, Releases, Reviews, Tutorials, Articles, Events, Contests, Comments, Code and much more.
This java weblog is maintained by Xyling Technologies, making life simpler.

Monday, April 11, 2005

Fatal Error? Get a mail!

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

0 Comments:

Post a Comment

<< Home