|
Rice Pastry API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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. |
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. |
Method Summary | |
void |
log(int priority,
java.lang.String message)
Prints the message if the priority is equal to or higher than the minimum priority. |
void |
logException(int priority,
java.lang.String message,
java.lang.Throwable exception)
Prints the stack trace of the exception. |
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
Method Detail |
public void log(int priority, java.lang.String message)
priority
- the priority of this log messagemessage
- the message to printpublic void logException(int priority, java.lang.String message, java.lang.Throwable exception)
priority
- the priority of this log messageexception
- the exception to printmessage
- DESCRIBE THE PARAMETER
|
Rice Pastry API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |