public class SwingDocumentApplicationLogger extends AbstractApplicationLogger
ApplicationLogger
appends all messages to a Document
. It
can be used to print log messages to Swing text components (e.g. JEditorPane
).Constructor and Description |
---|
SwingDocumentApplicationLogger(javax.swing.text.Document document) |
Modifier and Type | Method and Description |
---|---|
void |
addMessage(ApplicationLoggerMessage message)
Outputs a usual message to the user.
|
javax.swing.text.Document |
getDocument() |
addError, addError, addError, addError, addMessage, addMessage, addWarning, addWarning
public SwingDocumentApplicationLogger(javax.swing.text.Document document)
public javax.swing.text.Document getDocument()
public void addMessage(ApplicationLoggerMessage message)
ApplicationLogger