Class MemoryAppender

  • All Implemented Interfaces:
    org.apache.log4j.Appender, org.apache.log4j.spi.OptionHandler

    @Deprecated
    public class MemoryAppender
    extends org.apache.log4j.AppenderSkeleton
    Deprecated.
    Replaced by Log4J2 MemoryAppender.
    This appender will be used to capture the logs and later send to clients, if requested via the logging web service. This maintains a circular buffer, of some fixed amount (say 100).
    • Constructor Detail

      • MemoryAppender

        public MemoryAppender()
        Deprecated.
      • MemoryAppender

        public MemoryAppender​(CircularBuffer<org.apache.log4j.spi.LoggingEvent> circularBuffer)
        Deprecated.
    • Method Detail

      • append

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

        public void close()
        Deprecated.
      • requiresLayout

        public boolean requiresLayout()
        Deprecated.
      • getCircularQueue

        public CircularBuffer<org.apache.log4j.spi.LoggingEvent> getCircularQueue()
        Deprecated.
      • setCircularBuffer

        public void setCircularBuffer​(CircularBuffer<org.apache.log4j.spi.LoggingEvent> circularBuffer)
        Deprecated.
      • activateOptions

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

        public int getBufferSize()
        Deprecated.
      • setBufferSize

        public void setBufferSize​(int bufferSize)
        Deprecated.