Class AppenderAttachableImpl

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.util.Vector appenderList
      Array of appenders.
      private java.util.concurrent.ConcurrentMap<java.lang.String,​Appender> appenders  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addAppender​(Appender newAppender)
      Add an appender.
      int appendLoopOnAppenders​(LoggingEvent event)
      Calls the doAppend method on all attached appenders.
      void close()
      Closes all appenders.
      java.util.Enumeration<Appender> getAllAppenders()
      Get all previously added appenders as an Enumeration.
      Appender getAppender​(java.lang.String name)
      Get an appender by name.
      boolean isAttached​(Appender appender)
      Returns true if the specified appender is in list of attached attached, false otherwise.
      void removeAllAppenders()
      Remove all previously added appenders.
      void removeAppender​(java.lang.String name)
      Remove the appender with the name passed as parameter from the list of appenders.
      void removeAppender​(Appender appender)
      Remove the appender passed as parameter from the list of appenders.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • appenders

        private final java.util.concurrent.ConcurrentMap<java.lang.String,​Appender> appenders
      • appenderList

        protected java.util.Vector appenderList
        Array of appenders. TODO
    • Constructor Detail

      • AppenderAttachableImpl

        public AppenderAttachableImpl()
    • Method Detail

      • appendLoopOnAppenders

        public int appendLoopOnAppenders​(LoggingEvent event)
        Calls the doAppend method on all attached appenders.
        Parameters:
        event - The event to log.
        Returns:
        The number of appenders.
      • close

        public void close()
        Closes all appenders.
      • getAppender

        public Appender getAppender​(java.lang.String name)
        Description copied from interface: AppenderAttachable
        Get an appender by name.
        Specified by:
        getAppender in interface AppenderAttachable
        Parameters:
        name - The name of the Appender.
        Returns:
        The Appender.
      • isAttached

        public boolean isAttached​(Appender appender)
        Description copied from interface: AppenderAttachable
        Returns true if the specified appender is in list of attached attached, false otherwise.
        Specified by:
        isAttached in interface AppenderAttachable
        Parameters:
        appender - The Appender to check.
        Returns:
        true if the Appender is attached.
      • removeAppender

        public void removeAppender​(Appender appender)
        Description copied from interface: AppenderAttachable
        Remove the appender passed as parameter from the list of appenders.
        Specified by:
        removeAppender in interface AppenderAttachable
        Parameters:
        appender - The Appender to remove.
      • removeAppender

        public void removeAppender​(java.lang.String name)
        Description copied from interface: AppenderAttachable
        Remove the appender with the name passed as parameter from the list of appenders.
        Specified by:
        removeAppender in interface AppenderAttachable
        Parameters:
        name - The name of the Appender to remove.