com.notuvy.gui
Class StatusBarAppender

java.lang.Object
  extended by org.apache.log4j.AppenderSkeleton
      extended by com.notuvy.gui.StatusBarAppender
All Implemented Interfaces:
org.apache.log4j.Appender, org.apache.log4j.spi.OptionHandler

public class StatusBarAppender
extends org.apache.log4j.AppenderSkeleton

A log4j appender which writes to a GUI StatusBar. When a StatusBar is instantiated, it automatically registers with this class so events get logged there.

Author:
murali

Field Summary
protected static List<StatusBar> STATUSES
           
 
Fields inherited from class org.apache.log4j.AppenderSkeleton
closed, errorHandler, headFilter, layout, name, tailFilter, threshold
 
Constructor Summary
StatusBarAppender()
           
 
Method Summary
protected  void append(org.apache.log4j.spi.LoggingEvent event)
           
 void close()
           
 boolean requiresLayout()
           
 
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
 

Field Detail

STATUSES

protected static List<StatusBar> STATUSES
Constructor Detail

StatusBarAppender

public StatusBarAppender()
Method Detail

append

protected void append(org.apache.log4j.spi.LoggingEvent event)
Specified by:
append in class org.apache.log4j.AppenderSkeleton

requiresLayout

public boolean requiresLayout()
Specified by:
requiresLayout in interface org.apache.log4j.Appender
Specified by:
requiresLayout in class org.apache.log4j.AppenderSkeleton

close

public void close()
Specified by:
close in interface org.apache.log4j.Appender
Specified by:
close in class org.apache.log4j.AppenderSkeleton


Copyright © 2013. All Rights Reserved.