public class MessageDialogAppender extends org.apache.log4j.AppenderSkeleton implements Runnable
| Modifier and Type | Field and Description |
|---|---|
protected ConcurrentLinkedQueue<org.apache.log4j.spi.LoggingEvent> |
eventBuffer |
protected Set<String> |
ignoredMessageTypes |
protected AtomicReference<String> |
messengerThreadName |
| Constructor and Description |
|---|
MessageDialogAppender() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
append(org.apache.log4j.spi.LoggingEvent event)
Append a logging event.
|
void |
close()
Shut down.
|
protected void |
ensureMessengerRuns()
Make sure that a messenger thread is run.
|
protected String |
getCheckboxMessage(org.apache.log4j.spi.LoggingEvent event)
Generate the additional check box message specific to the given event
|
protected void |
initConfiguration() |
boolean |
requiresLayout() |
void |
run()
Display messages until none are left to display.
|
protected boolean |
showMessage(org.apache.log4j.spi.LoggingEvent event)
Display a dialog window to inform the user about one message event.
|
protected final ConcurrentLinkedQueue<org.apache.log4j.spi.LoggingEvent> eventBuffer
protected final AtomicReference<String> messengerThreadName
protected void initConfiguration()
public void close()
close in interface org.apache.log4j.Appenderclose in class org.apache.log4j.AppenderSkeletonpublic boolean requiresLayout()
requiresLayout in interface org.apache.log4j.AppenderrequiresLayout in class org.apache.log4j.AppenderSkeletonprotected void append(org.apache.log4j.spi.LoggingEvent event)
append in class org.apache.log4j.AppenderSkeletonprotected void ensureMessengerRuns()
protected String getCheckboxMessage(org.apache.log4j.spi.LoggingEvent event)
event - the event for which the check box message should be generatedprotected boolean showMessage(org.apache.log4j.spi.LoggingEvent event)
event - the event for which to display the messagetrue if the message has been shownCopyright © 2011-2015 Department of Computer Science, University of Oxford. All Rights Reserved.