Developing, deploying and maintaining applications are complex tasks. When an application encounters an unexpected condition, might not be able to complete a requested operation. You might want the application to inform the administrator that the operation failed and tell the administrator why the operation failed. This information enables the administrator to take the proper corrective action. Application developers might need to gather detailed information that relates to the path of a running application to determine the root cause of a failure that is due to a code bug. The facilities that are used for these purposes are typically referred to as logging and tracing.
Java logging is the logging toolkit that is provided by the java.util.logging package. Java logging provides a standard logging API for your applications.
Message logging (messages) and diagnostic trace (trace) are conceptually similar, but do have important differences. These differences are important for application developers to understand to use these tools properly. The following operational definitions of messages and trace are provided.
See the Java documentation for the java.util.logging class for a full description of the syntax and the construction of logging methods.
Searchable topic ID: ttrb_javalogging