edu.cs.ai.kreator.logging
Class TextPaneAppender
java.lang.Object
org.apache.log4j.AppenderSkeleton
edu.cs.ai.kreator.logging.TextPaneAppender
- All Implemented Interfaces:
- org.apache.log4j.Appender, org.apache.log4j.spi.OptionHandler
public class TextPaneAppender
- extends org.apache.log4j.AppenderSkeleton
- Author:
- Marc Finthammer
A log4j appender that writes colorized (according to their priority) logging messages in a JTextPane.
Fields inherited from class org.apache.log4j.AppenderSkeleton |
closed, errorHandler, headFilter, layout, name, tailFilter, threshold |
Methods inherited from class org.apache.log4j.AppenderSkeleton |
activateOptions, addFilter, clearFilters, doAppend, finalize, getErrorHandler, getFilter, getFirstFilter, getLayout, getName, getThreshold, isAsSevereAsThreshold, setErrorHandler, setLayout, setName, setThreshold |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
styleStandard
public javax.swing.text.Style styleStandard
styleSpecial
public javax.swing.text.Style styleSpecial
styleTrace
public javax.swing.text.Style styleTrace
styleDebug
public javax.swing.text.Style styleDebug
styleInfo
public javax.swing.text.Style styleInfo
styleWarn
public javax.swing.text.Style styleWarn
styleError
public javax.swing.text.Style styleError
styleFatal
public javax.swing.text.Style styleFatal
TextPaneAppender
public TextPaneAppender()
TextPaneAppender
public TextPaneAppender(org.apache.log4j.Layout layout)
TextPaneAppender
public TextPaneAppender(org.apache.log4j.Layout layout,
javax.swing.JTextPane textPane)
close
public void close()
requiresLayout
public boolean requiresLayout()
isInitialized
public boolean isInitialized()
initializeWithTextPane
public void initializeWithTextPane(javax.swing.JTextPane textPane)
append
protected void append(org.apache.log4j.spi.LoggingEvent event)
- Specified by:
append
in class org.apache.log4j.AppenderSkeleton