Datasheet
Method Description
void config(String msg) The Logger class contains a number of convenience
void fine(String msg)
methods for logging messages. For quickly logging a
void finer(String msg)
message of a specified level, one method for each
void finest(String msg)
logging level is defined.
void info(String msg)
void severe(String msg)
void warning(String msg)
void entering(String sourceClass, Log a message when a method is first entered. The
String sourceMethod) variant forms take a parameter to the method, or an
void entering(String sourceClass,
array of parameters, to provide for more detailed
String sourceMethod,
tracking of the method invocation. The message of the
Object param1)
log is ENTRY in addition to the other information
void entering(String sourceClass,
about the method call. The log level is Level.FINER.
String sourceMethod, Object
params[])
void exiting(String sourceClass,
Log a message when a method is about to return. The
String sourceMethod) log message contains RETURN and the log level is
void exiting(String sourceClass,
Level.FINER
. The source class and source method
String sourceMethod, Object
are also logged.
result)
boolean isLoggable(Level level) Checks if a certain level will be logged. Returns true if
it will be logged, or false otherwise.
void log(Level level, String msg) Standard general logging convenience methods.
void log(Level level, String msg,
Variants include the ability to specify a parameter or
Object param1)
array of parameters to log, or Throwable information.
void log(Level level, String msg,
The information is placed into a LogRecord object
Object[] params)
and sent into the logging system. The last variant
void log(Level level, String msg,
takes a LogRecord object.
Throwable thrown)
void log(LogRecord record)
Table continued on following page
41
Chapter 1: Key Java Language Features and Libraries
05_777106 ch01.qxp 11/28/06 10:43 PM Page 41