Java SDK 1.4 Logging API - Logging Priorities
Return to the Java Programming Corner.
The architecture of the Java 1.4 Logging API defines several levels of logging information. These levels describe the priority of a log request, and the logging framework can be tuned to display logging information related to a certain level(s). The levels defined can be categorized in the descending order or priority as follows:
This level should be used to log messages about problems that are very critical to the application and will need immediate attention.
This level should be used to log messages that indicate a potention problem with an application.
This level is the default level used by the logging API. Log messages published with this level are generally normal debugging statements that are typically used during the development phase and day-to-day maintenance of the application.
This level should be used to specify log messages related to the configuration stage of the application. For example, at startup of an application, you could use this level to print configuration-related information like database or JNDI connection information.
These three levels denote the detail of the log messages from less detailed to highly detailed. Use of these logging levels will result in a vast amount of logging information being published to the logging destination.
This level can be used to indicate that all messages (defined above) should be logged.