Level

Level is a simple concept. It is the metadata of the log record but also most of the logging components we just looked at. The main idea is to be able to compare the log record level to the level of the component the record goes through to skip the message if it is not compatible. The common (sorted) logging levels are:

  • OFF: Not directly used by the log record, but generally used only by other components, it disables any log message.
  • SEVERE (or ERROR): The highest log level. It is intended to be used when something bad occurs. A record is logged if the component level is not OFF.
  • WARNING: Generally used when something wrong happened (but is not preventing the application to work); a record is logged if the level of the components is ...

Get Java EE 8 High Performance 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.