Class AppenderSkeleton

    • Field Detail

      • layout

        protected Layout layout
      • threshold

        protected Priority threshold
      • headFilter

        protected Filter headFilter
      • tailFilter

        protected Filter tailFilter
      • closed

        protected boolean closed
    • Constructor Detail

      • AppenderSkeleton

        public AppenderSkeleton()
        Create new instance.
      • AppenderSkeleton

        protected AppenderSkeleton​(boolean isActive)
    • Method Detail

      • addFilter

        public void addFilter​(Filter newFilter)
        Description copied from interface: Appender
        Add a filter to the end of the filter list.
        Specified by:
        addFilter in interface Appender
        Parameters:
        newFilter - The filter to add.
      • append

        protected abstract void append​(LoggingEvent event)
      • clearFilters

        public void clearFilters()
        Description copied from interface: Appender
        Clear the list of filters by removing all the filters in it.
        Specified by:
        clearFilters in interface Appender
      • finalize

        public void finalize()
        Overrides:
        finalize in class Object
      • getFilter

        public Filter getFilter()
        Description copied from interface: Appender
        Returns the head Filter. The Filters are organized in a linked list and so all Filters on this Appender are available through the result.
        Specified by:
        getFilter in interface Appender
        Returns:
        the head Filter or null, if no Filters are present
      • getFirstFilter

        public final Filter getFirstFilter()
      • getLayout

        public Layout getLayout()
        Description copied from interface: Appender
        Returns this appenders layout.
        Specified by:
        getLayout in interface Appender
        Returns:
        the Layout.
      • getName

        public final String getName()
        Description copied from interface: Appender
        Get the name of this appender.
        Specified by:
        getName in interface Appender
        Returns:
        name, may be null.
      • getThreshold

        public Priority getThreshold()
      • isAsSevereAsThreshold

        public boolean isAsSevereAsThreshold​(Priority priority)
      • doAppend

        public void doAppend​(LoggingEvent event)
        This method is never going to be called in Log4j 2 so there isn't much point in having any code in it.
        Specified by:
        doAppend in interface Appender
        Parameters:
        event - The LoggingEvent.
      • setLayout

        public void setLayout​(Layout layout)
        Description copied from interface: Appender
        Set the Layout for this appender.
        Specified by:
        setLayout in interface Appender
        Parameters:
        layout - The Layout.
      • setName

        public void setName​(String name)
        Description copied from interface: Appender
        Set the name of this appender. The name is used by other components to identify this appender.
        Specified by:
        setName in interface Appender
        Parameters:
        name - The appender name.
      • setThreshold

        public void setThreshold​(Priority threshold)