|
Oracle | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.compoze.collab.log.LogLevel
public class LogLevel
This enumeration class contains the available log levels. Five log levels
(TRACE, DEBUG, INFO, WARN and
ERROR are available, in order of increasing severity.
| Field Summary | |
|---|---|
static LogLevel |
DEBUG
Next-to-lowest level of severity used for debugging applications- will usually be disabled in production. |
static LogLevel |
ERROR
Highest level of severity- indicates definite problems. |
static LogLevel |
INFO
Middle level of severity- useful informational messages. |
static LogLevel |
TRACE
Lowest level of severity, used for messages that can become extremely verbose such as network traces or data dumps- will usually be disabled in production. |
static int |
VALUE_DEBUG
The int value used for the debug log level. |
static int |
VALUE_ERROR
The int value used for the error log level. |
static int |
VALUE_INFO
The int value used for the info log level. |
static int |
VALUE_TRACE
The int value used for the trace log level. |
static int |
VALUE_WARN
The int value used for the warn log level. |
static LogLevel |
WARN
Next-to-highest level of severity- potential problems that need to be evaluated. |
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object obj)
|
static LogLevel |
get(int iValue)
Gets the log level for an integer value. |
java.lang.String |
getDescription()
Gets a description for the log level in the default locale. |
java.lang.String |
getDescription(java.util.Locale locale)
Gets a description for the log level. |
int |
getIntValue()
Gets an integer value for the log level. |
java.lang.String |
getName()
Gets a readable name for the log level in the default locale. |
java.lang.String |
getName(java.util.Locale locale)
Gets a readable name for the log level. |
java.lang.String |
toString()
Creates a string representation of the log level for debugging purposes. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int VALUE_TRACE
public static final int VALUE_DEBUG
public static final int VALUE_INFO
public static final int VALUE_WARN
public static final int VALUE_ERROR
public static final LogLevel TRACE
public static final LogLevel DEBUG
public static final LogLevel INFO
public static final LogLevel WARN
public static final LogLevel ERROR
| Method Detail |
|---|
public java.lang.String getName()
public java.lang.String getName(java.util.Locale locale)
locale - the locale to get the name of the log level in
public java.lang.String getDescription()
public java.lang.String getDescription(java.util.Locale locale)
locale - the locale to get the description in
public int getIntValue()
public boolean equals(java.lang.Object obj)
equals in class java.lang.ObjectObject.equals(java.lang.Object)public static LogLevel get(int iValue)
null if no match.public java.lang.String toString()
toString in class java.lang.Objectnull)
|
Oracle | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||