Summary

Logging is an essential part of any application, small or large. While sometimes ignored in small applications, using a good logging service can save hours of development time by helping debug developing applications and helping to isolate problems in deployed production applications. Logging becomes even more important when using distributed programming, since a problem could originate in one application tier and not be discovered until later execution on another tier. Using logging trace can help isolate these problems quickly.

This chapter demonstrated two choices that are available to Java developers: the log4j package from Jakarta Apache, or the Sun Java logging package that has been added to JDK 1.4 ( java.util.logging). Both packages ...

Get J2EE™ and Beyond: Design, Develop, and Deploy World-Class Java™ Software now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.