Java Logging

Jakob Jenkov
Last update: 2014-06-23

This tutorial is about Javas built-in logging API in the java.util.logging package. The tutorial explains how to add logging to your Java applications using this API, how to configure it etc. It does not cover what you should log, though. What information to log is up to you, depending on what information you need.

The version of the Java logging API covered is the version found in Java 6.

Note: This tutorial does not cover the other popular Java logging API's (Log4J, SLF4J, Apache Commons Logging, LogBack etc.). It only covers Java's built-in logging API, java.util.logging.

If you can choose your own logging API freely, you may choose one of these other, popular logging API's instead of java.util.logging. However, if you are running your web applications on Google App Engine, like I do, then you have to use the java.util.logging API.

Feel Free to Contact Me

If you disagree with anything I write here about the Java logging tutorial, or just have comments, questions, etc, feel free to send me an email. You wouldn't be the first to do so. You can find my email address on the about page.

Jakob Jenkov

Featured Videos




















Advertisements

High-Performance
Java Persistence
Close TOC

All Trails

Trail TOC

Page TOC

Previous

Next