Package | Description |
---|---|
java.util.logging |
Modifier and Type | Field and Description |
---|---|
static Level |
Level.ALL
ALL indicates that all messages should be logged.
|
static Level |
Level.CONFIG
CONFIG is a message level for static configuration messages.
|
static Level |
Level.FINE
FINE is a message level providing tracing information.
|
static Level |
Level.FINER
FINER indicates a fairly detailed tracing message.
|
static Level |
Level.FINEST
FINEST indicates a highly detailed tracing message.
|
static Level |
Level.INFO
INFO is a message level for informational messages.
|
static Level |
Level.OFF
OFF is a special level that can be used to turn off logging.
|
static Level |
Level.SEVERE
SEVERE is a message level indicating a serious failure.
|
static Level |
Level.WARNING
WARNING is a message level indicating a potential problem.
|
Modifier and Type | Method and Description |
---|---|
Level |
Logger.getLevel()
Get the current level of this Logger.
|
Level |
LogRecord.getLevel()
Get the logging message level.
|
Modifier and Type | Method and Description |
---|---|
boolean |
Logger.isLoggable(Level level)
Check if a message of the given level would be logged by this Logger.
|
void |
Logger.log(Level level,
String msg)
Log a message, with no arguments.
|
void |
Logger.log(Level level,
String msg,
Throwable thrown)
Log a message, with an associated throwable object.
|
void |
Logger.setLevel(Level newLevel)
Set the specified Level to the Logger.
|
void |
LogRecord.setLevel(Level level)
Set the logging message level.
|
Constructor and Description |
---|
LogRecord(Level level,
String msg)
Construct a LogRecord with the given level and message.
|