|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.virtualweaver.xotics.datamodel.XoLogMessageBuffer
Log Buffer queues various messages from Xotics classes and accessible for user level log messages.
Nested Class Summary | |
static class |
XoLogMessageBuffer.XoLogMessage
Class representing a Xotics log message. |
Field Summary | |
static byte |
ERROR
|
static byte |
INFO
|
static byte |
NONE
|
static byte |
WARNING
|
Constructor Summary | |
protected |
XoLogMessageBuffer()
Constructor |
Method Summary | |
int |
getMaxSize()
Returns the buffer size. |
void |
logError(java.lang.String msg)
Sends an ERROR log message to the buffer. |
void |
logInfo(java.lang.String msg)
Sends a INFO log message to the buffer. |
void |
logWarning(java.lang.String msg)
Sends a WARNING log message to the buffer. |
XoLogMessageBuffer.XoLogMessage |
read()
Returns and suppress the older log message from the buffer |
void |
setLogLevel(byte t)
Sets the log level from which message are stored. |
void |
setMaxSize(int size)
Sets the buffer size. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final byte INFO
public static final byte WARNING
public static final byte ERROR
public static final byte NONE
Constructor Detail |
protected XoLogMessageBuffer()
Method Detail |
public void setLogLevel(byte t)
t
- the log level to filter messagespublic void setMaxSize(int size)
size
- the last number of messages stored in buffer.public int getMaxSize()
public void logInfo(java.lang.String msg)
msg
- the INFO message stringpublic void logWarning(java.lang.String msg)
msg
- the WARNING message stringpublic void logError(java.lang.String msg)
msg
- the ERROR message stringpublic XoLogMessageBuffer.XoLogMessage read()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |