21 August 2004 - 15:23Java Application Logging With Log4J
One problem that I have always faced with creating robust Java Applications has been logging the state of the program. In some cases it’s important to know about debug information, while other times it can get in the way. Even solutions that initially appear simple, can turn out to cause problems. One example is using System.out.println statements. This can cause problems when the application is no longer attached to a console such as in a Servlet. Other times having a console open with a Swing application can be difficult. Then to remove the output, it is necessary to comment out all of the print lines in a final release, taking even more time. One very good solution I’ve run across is using the Jakarta Log4J project.
No Comments | Tags: Programming