|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opends.server.loggers.LogLevel
public class LogLevel
The Level class defines a set of standard logging levels that can be used to control logging output. The logging Level objects are ordered and are specified by ordered integers. Enabling logging at a given level also enables logging at all higher levels.
| Field Summary | |
|---|---|
static LogLevel |
ALL
ALL indicates that all messages should be logged. |
static LogLevel |
DISABLED
OFF is a special level that can be used to turn off logging. |
| Constructor Summary | |
|---|---|
protected |
LogLevel(java.lang.String name,
int value)
Create a named Level with a given integer value. |
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object ox)
Compare two objects for value equality. |
static java.util.HashSet<java.lang.String> |
getLevelStrings()
Returns the string representations of all the levels. |
java.lang.String |
getName()
Return the non-localized string name of the Level. |
int |
hashCode()
Retrives the hashcode for this log level. |
int |
intValue()
Get the integer value for this level. |
static LogLevel |
parse(java.lang.String name)
Parse a level name string into a LogLevel. |
java.lang.String |
toString()
Retrieve the string reprentation of this log level. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final LogLevel DISABLED
Integer.MAX_VALUE.
public static final LogLevel ALL
Integer.MIN_VALUE.
| Constructor Detail |
|---|
protected LogLevel(java.lang.String name,
int value)
Note that this constructor is "protected" to allow subclassing.
name - the name of the Level, for example "SEVERE".value - an integer value for the level.| Method Detail |
|---|
public java.lang.String getName()
public final java.lang.String toString()
toString in class java.lang.Objectpublic final int intValue()
public static LogLevel parse(java.lang.String name)
throws java.lang.IllegalArgumentException
The argument string may consist of either a level name or an integer value.
For example:
name - string to be parsed
CONFIG). Passing an integer that does not (eg 1)
will return a new level name initialized to that value.
java.lang.IllegalArgumentException - if the value is not valid.
Valid values are integers between Integer.MIN_VALUE
and Integer.MAX_VALUE, and all known level names.
Known names are the levels defined by this class (i.e. FINE,
FINER, FINEST), or created by this class with
appropriate package access, or new levels defined or created
by subclasses.public boolean equals(java.lang.Object ox)
equals in class java.lang.Objectox - the LogLevel object to test.
public int hashCode()
hashCode in class java.lang.Objectpublic static java.util.HashSet<java.lang.String> getLevelStrings()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||