Datasheet

Method Description
void setSequenceNumber(long seq) Sets the sequence number of the log message. This
method shouldn’t usually be called, because the con-
structor assigns a unique number to each log message.
The Level Class
The Level class defines the entire set of logging levels, and also objects of this class represent a specific
logging level that is then used by loggers, handlers, and so on. If you desire, you can subclass this class
and define your own custom levels, as long as they do not conflict with the existing logging levels.
Logging Levels
The following logging levels are defined in the Level class.
Log Level Description
OFF Special value that is initialized to Integer.MAX_
VALUE
. This turns logging off.
SEVERE Meant for serious failures. Initialized to 1,000.
WARNING Meant to indicate potential problems. Initialized
to 900.
INFO General information. Initialized to 800.
CONFIG Meant for messages useful for debugging. Initialized
to 700.
FINE Meant for least verbose tracing information.
Initialized to 500.
FINER More detailed tracing information. Initialized to 400.
FINEST Most detailed level of tracing information. Initialized
to 300.
ALL Special value. Logs ALL messages. Initialized to
Integer.MIN_VALUE.
Level Methods
The Level class defines methods to set and retrieve a specific logging level. Both numeric and textual
versions of levels can be used.
45
Chapter 1: Key Java Language Features and Libraries
05_777106 ch01.qxp 11/28/06 10:43 PM Page 45