java.io.Serializablepublic class Level extends Priority implements java.io.Serializable
OFF, FATAL, ERROR,
WARN, INFO, DEBUG and ALL.
The Level class may be subclassed to define a larger level set.
| Modifier and Type | Field | Description |
|---|---|---|
static Level |
ALL |
The
ALL has the lowest possible rank and is intended to turn on all logging. |
static Level |
DEBUG |
The
DEBUG Level designates fine-grained informational events that are most useful to debug an
application. |
static Level |
ERROR |
The
ERROR level designates error events that might still allow the application to continue running. |
static Level |
FATAL |
The
FATAL level designates very severe error events that will presumably lead the application to abort. |
static Level |
INFO |
The
INFO level designates informational messages that highlight the progress of the application at
coarse-grained level. |
static Level |
OFF |
The
OFF has the highest possible rank and is intended to turn off logging. |
static Level |
TRACE |
The
TRACE Level designates finer-grained informational events than the DEBUG level. |
static int |
TRACE_INT |
TRACE level integer value.
|
static Level |
WARN |
The
WARN level designates potentially harmful situations. |
| Modifier | Constructor | Description |
|---|---|---|
protected |
Level(int level,
java.lang.String levelStr,
int syslogEquivalent) |
Instantiate a Level object.
|
| Modifier and Type | Method | Description |
|---|---|---|
protected java.lang.Object |
readResolve() |
Resolved deserialized level to one of the stock instances.
|
static Level |
toLevel(int val) |
Convert an integer passed as argument to a level.
|
static Level |
toLevel(int val,
Level defaultLevel) |
Convert an integer passed as argument to a level.
|
static Level |
toLevel(java.lang.String sArg) |
Convert the string passed as argument to a level.
|
static Level |
toLevel(java.lang.String sArg,
Level defaultLevel) |
Convert the string passed as argument to a level.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitequals, getAllPossiblePriorities, getSyslogEquivalent, hashCode, isGreaterOrEqual, toInt, toPriority, toPriority, toPriority, toPriority, toStringpublic static final int TRACE_INT
public static final Level OFF
OFF has the highest possible rank and is intended to turn off logging.public static final Level FATAL
FATAL level designates very severe error events that will presumably lead the application to abort.public static final Level ERROR
ERROR level designates error events that might still allow the application to continue running.public static final Level WARN
WARN level designates potentially harmful situations.public static final Level INFO
INFO level designates informational messages that highlight the progress of the application at
coarse-grained level.public static final Level DEBUG
DEBUG Level designates fine-grained informational events that are most useful to debug an
application.public static final Level TRACE
TRACE Level designates finer-grained informational events than the DEBUG level.public static final Level ALL
ALL has the lowest possible rank and is intended to turn on all logging.protected Level(int level,
java.lang.String levelStr,
int syslogEquivalent)
level - The logging level.levelStr - The level name.syslogEquivalent - The matching syslog level.public static Level toLevel(java.lang.String sArg)
DEBUG.sArg - The level name.public static Level toLevel(int val)
DEBUG.val - The integer value of the Level.public static Level toLevel(int val, Level defaultLevel)
val - The integer value of the Level.defaultLevel - the default level if the integer doesn't match.public static Level toLevel(java.lang.String sArg, Level defaultLevel)
defaultLevel.sArg - The name of the Level.defaultLevel - The default Level to use.protected java.lang.Object readResolve()
throws java.io.ObjectStreamException
java.io.ObjectStreamException - if exception during resolution.Copyright © 2023. All rights reserved.