Class InMemoryAppender

  • All Implemented Interfaces:
    groovy.lang.GroovyObject, Closeable, AutoCloseable, org.apache.log4j.Appender, org.apache.log4j.spi.OptionHandler

    public class InMemoryAppender
    extends org.apache.log4j.AppenderSkeleton
    implements Closeable, groovy.lang.GroovyObject
    • Constructor Detail

      • InMemoryAppender

        public InMemoryAppender()
    • Method Detail

      • getMetaClass

        public groovy.lang.MetaClass getMetaClass()
        Specified by:
        getMetaClass in interface groovy.lang.GroovyObject
      • setMetaClass

        public void setMetaClass​(groovy.lang.MetaClass mc)
        Specified by:
        setMetaClass in interface groovy.lang.GroovyObject
      • invokeMethod

        public Object invokeMethod​(String method,
                                   Object arguments)
        Specified by:
        invokeMethod in interface groovy.lang.GroovyObject
      • getProperty

        public Object getProperty​(String property)
        Specified by:
        getProperty in interface groovy.lang.GroovyObject
      • setProperty

        public void setProperty​(String property,
                                Object value)
        Specified by:
        setProperty in interface groovy.lang.GroovyObject
      • getLoggingEvents

        public List<String> getLoggingEvents()
      • clearLoggedMessages

        public void clearLoggedMessages()
      • append

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

        public void close()
        Specified by:
        close in interface org.apache.log4j.Appender
        Specified by:
        close in interface AutoCloseable
        Specified by:
        close in interface Closeable
      • requiresLayout

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