|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectqx.core.Object
qx.log.LogEventProcessor
qx.log.appender.Abstract
qx.log.appender.RingBuffer
public class RingBuffer
An appender that writes all messages to a memory container. The messages can be retrieved later, f. i. when an error dialog pops up and the question arises what actions have caused the error.
Constructor Summary | |
---|---|
RingBuffer()
|
Method Summary | |
---|---|
void |
_applyMaxMessages(java.lang.Object value,
java.lang.Object old)
|
void |
appendLogEvent(java.lang.Object evt)
Appends a log event to the log. |
java.lang.String |
formatLogEvents(java.lang.Integer count)
Returns a string holding the information of log events which have been logged previously. |
java.lang.Integer |
getMaxMessages()
Returns the (computed) value of the property maxMessages . |
void |
initMaxMessages(java.lang.Integer arg)
Calls the apply method and dispatches the change event of the property maxMessages
with the default value defined by the class developer. |
void |
resetMaxMessages()
Resets the user value of the property maxMessages . |
java.lang.Object |
retrieveLogEvents(java.lang.Integer count)
Returns log events which have been logged previously. |
void |
setMaxMessages(java.lang.Integer arg)
Sets the user value of the property maxMessages . |
Methods inherited from class qx.log.appender.Abstract |
---|
formatLogEvent, getUseLongFormat, handleLogEvent, initUseLongFormat, isUseLongFormat, resetUseLongFormat, setUseLongFormat, toggleUseLongFormat |
Methods inherited from class qx.log.LogEventProcessor |
---|
_getDefaultFilter, addFilter, clearFilters, decideLogEvent, getHeadFilter, setEnabled, setMinLevel |
Methods inherited from class qx.core.Object |
---|
_disposeFields, _disposeObjectDeep, _disposeObjects, base, dispose, get, getDisposed, isDisposed, reset, self, set, toHashCode, toString_ |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RingBuffer()
Method Detail |
---|
public void _applyMaxMessages(java.lang.Object value, java.lang.Object old)
public void appendLogEvent(java.lang.Object evt)
Abstract
Appends a log event to the log.
appendLogEvent
in class Abstract
public java.lang.String formatLogEvents(java.lang.Integer count)
Returns a string holding the information of log events which have been logged previously.
public java.lang.Integer getMaxMessages()
Returns the (computed) value of the property maxMessages
.
For further details take a look at the property definition: maxMessages
.
public void initMaxMessages(java.lang.Integer arg)
Calls the apply method and dispatches the change event of the property maxMessages
with the default value defined by the class developer. This function can
only be called from the constructor of a class.
For further details take a look at the property definition: maxMessages
.
public void resetMaxMessages()
Resets the user value of the property maxMessages
.
The computed value falls back to the next available value e.g. appearance, init or inheritance value depeneding on the property configuration and value availability.
For further details take a look at the property definition: maxMessages
.
public java.lang.Object retrieveLogEvents(java.lang.Integer count)
Returns log events which have been logged previously.
public void setMaxMessages(java.lang.Integer arg)
Sets the user value of the property maxMessages
.
For further details take a look at the property definition: maxMessages
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |