org.openmrs.util
Class MemoryAppender

java.lang.Object
  extended by org.apache.log4j.AppenderSkeleton
      extended by org.openmrs.util.MemoryAppender
All Implemented Interfaces:
org.apache.log4j.Appender, org.apache.log4j.spi.OptionHandler

public class MemoryAppender
extends org.apache.log4j.AppenderSkeleton

This class stores a few lines of the output to the log file. This class is set in the log4j descriptor file: /metadata/api/log4j/log4j.xml


Field Summary
 
Fields inherited from class org.apache.log4j.AppenderSkeleton
closed, errorHandler, headFilter, layout, name, tailFilter, threshold
 
Constructor Summary
MemoryAppender()
           
 
Method Summary
 void activateOptions()
           
protected  void append(org.apache.log4j.spi.LoggingEvent loggingEvent)
           
 void close()
           
 int getBufferSize()
           
 java.util.List<java.lang.String> getLogLines()
           
 boolean requiresLayout()
           
 void setBufferSize(int bufferSize)
           
 
Methods inherited from class org.apache.log4j.AppenderSkeleton
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
 

Constructor Detail

MemoryAppender

public MemoryAppender()
Method Detail

append

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

close

public void close()

requiresLayout

public boolean requiresLayout()

activateOptions

public void activateOptions()
Specified by:
activateOptions in interface org.apache.log4j.spi.OptionHandler
Overrides:
activateOptions in class org.apache.log4j.AppenderSkeleton

getLogLines

public java.util.List<java.lang.String> getLogLines()

getBufferSize

public int getBufferSize()

setBufferSize

public void setBufferSize(int bufferSize)

OpenMRS-1.7.x

Generated Apr 27 2012 10:06 PM. NOTE - these libraries are in active development and subject to change