edu.uiuc.ndiipp.hubandspoke.profile
Class HaSMETSAppender

java.lang.Object
  extended by org.apache.log4j.AppenderSkeleton
      extended by edu.uiuc.ndiipp.hubandspoke.profile.HaSMETSAppender
All Implemented Interfaces:
org.apache.log4j.Appender, org.apache.log4j.spi.OptionHandler

public class HaSMETSAppender
extends org.apache.log4j.AppenderSkeleton

This class will collect log4j events for possible later use in PREMIS events or other sections of the METS file. The events use the XMLLayout

Author:
thabing

Constructor Summary
HaSMETSAppender()
           
HaSMETSAppender(java.lang.String name)
           
 
Method Summary
 void clearEvents()
           
 void close()
           
 java.lang.String getAllEventsAsXmlText()
           
 java.util.ArrayList<org.apache.log4j.spi.LoggingEvent> getEvents()
           
 boolean hasErrors()
           
 boolean hasEvents()
           
 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
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HaSMETSAppender

public HaSMETSAppender()

HaSMETSAppender

public HaSMETSAppender(java.lang.String name)
Method Detail

close

public void close()
Specified by:
close in interface org.apache.log4j.Appender
Specified by:
close 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

getEvents

public java.util.ArrayList<org.apache.log4j.spi.LoggingEvent> getEvents()

clearEvents

public void clearEvents()

getAllEventsAsXmlText

public java.lang.String getAllEventsAsXmlText()

hasEvents

public boolean hasEvents()

hasErrors

public boolean hasErrors()


Copyright 2006, University of Illinois.