Save This Page
Home » apache-log4j-1.2.15 » org.apache » log4j » lf5 » [javadoc | source]
org.apache.log4j.lf5
public class: LF5Appender [javadoc | source]
java.lang.Object
   org.apache.log4j.AppenderSkeleton
      org.apache.log4j.lf5.LF5Appender

All Implemented Interfaces:
    OptionHandler, Appender

LF5Appender logs events to a swing based logging console. The swing console supports turning categories on and off, multiple detail level views, as well as full text searching and many other capabilties.
Field Summary
protected  LogBrokerMonitor _logMonitor     
protected static  LogBrokerMonitor _defaultLogMonitor     
protected static  AppenderFinalizer _finalizer     
Fields inherited from org.apache.log4j.AppenderSkeleton:
layout,  name,  threshold,  errorHandler,  headFilter,  tailFilter,  closed
Constructor:
 public LF5Appender() 
 public LF5Appender(LogBrokerMonitor monitor) 
    Constructs a LF5Appender using an instance of a LogBrokerMonitor supplied by the user. This constructor should only be used when you need to spawn additional log monitoring windows.
    Parameters:
    monitor - An instance of a LogBrokerMonitor created by the user.
Method from org.apache.log4j.lf5.LF5Appender Summary:
append,   close,   equals,   getDefaultInstance,   getDefaultMonitorHeight,   getDefaultMonitorWidth,   getLogBrokerMonitor,   getScreenHeight,   getScreenWidth,   main,   requiresLayout,   setCallSystemExitOnClose,   setMaxNumberOfRecords
Methods from org.apache.log4j.AppenderSkeleton:
activateOptions,   addFilter,   append,   clearFilters,   doAppend,   finalize,   getErrorHandler,   getFilter,   getFirstFilter,   getLayout,   getName,   getThreshold,   isAsSevereAsThreshold,   setErrorHandler,   setLayout,   setName,   setThreshold
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.log4j.lf5.LF5Appender Detail:
 public  void append(LoggingEvent event) 
    Appends a LoggingEvent record to the LF5Appender.
 public  void close() 
    This method is an empty implementation of the close() method inherited from the org.apache.log4j.Appender interface.
 public boolean equals(LF5Appender compareTo) 
    The equals method compares two LF5Appenders and determines whether they are equal. Two Appenders will be considered equal if, and only if, they both contain references to the same LogBrokerMonitor.
 protected static synchronized LogBrokerMonitor getDefaultInstance() 
 protected static int getDefaultMonitorHeight() 
 protected static int getDefaultMonitorWidth() 
 public LogBrokerMonitor getLogBrokerMonitor() 
 protected static int getScreenHeight() 
 protected static int getScreenWidth() 
 public static  void main(String[] args) 
 public boolean requiresLayout() 
    Returns a value that indicates whether this appender requires a Layout. This method always returns false. No layout is required for the LF5Appender.
 public  void setCallSystemExitOnClose(boolean callSystemExitOnClose) 
    This method is used to set the property that controls whether the LogBrokerMonitor is hidden or closed when a user exits the monitor. By default, the LogBrokerMonitor will hide itself when the log window is exited, and the swing thread will continue to run in the background. If this property is set to true, the LogBrokerMonitor will call System.exit(0) and will shut down swing thread and the virtual machine.
 public  void setMaxNumberOfRecords(int maxNumberOfRecords)