|
ePOST API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object rice.environment.logging.Logger
public abstract class Logger
The Logger is a simplified interface of the java.util.logging.Logger. It is envisioned that one could implement this interface using java.util.logging, but that many times this interface is overkill.
Field Summary | |
---|---|
static int |
ALL
ALL indicates that all messages should be logged. |
static int |
CONFIG
CONFIG is a message level for static configuration messages. |
static int |
FINE
FINE is a message level providing tracing information. |
static int |
FINER
FINER indicates a fairly detailed tracing message. |
static int |
FINEST
FINEST indicates a highly detailed tracing message. |
static int |
INFO
INFO is a message level for informational messages. |
int |
level
This is public for performance reasons. |
static int |
OFF
OFF is a special level that can be used to turn off logging. |
static int |
SEVERE
SEVERE is a message level indicating a serious failure. |
static int |
WARNING
WARNING is a message level indicating a potential problem. |
Constructor Summary | |
---|---|
Logger()
|
Method Summary | |
---|---|
abstract void |
log(java.lang.String message)
Prints the message if the priority is equal to or higher than the minimum priority. |
abstract void |
logException(java.lang.String message,
java.lang.Throwable exception)
Prints the stack trace of the exception. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int SEVERE
public static final int WARNING
public static final int INFO
public static final int CONFIG
public static final int FINE
public static final int FINER
public static final int FINEST
public static final int ALL
public static final int OFF
public int level
Constructor Detail |
---|
public Logger()
Method Detail |
---|
public abstract void log(java.lang.String message)
priority
- the priority of this log messagemessage
- the message to printpublic abstract void logException(java.lang.String message, java.lang.Throwable exception)
priority
- the priority of this log messageexception
- the exception to print
|
ePOST API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |