Class LoggerRepositoryExImpl.HierarchyEventListenerProxy

  • All Implemented Interfaces:
    org.apache.log4j.spi.HierarchyEventListener
    Enclosing class:
    LoggerRepositoryExImpl

    private static final class LoggerRepositoryExImpl.HierarchyEventListenerProxy
    extends java.lang.Object
    implements org.apache.log4j.spi.HierarchyEventListener
    Proxy that implements HierarchyEventListener and delegates to LoggerEventListener.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addAppenderEvent​(org.apache.log4j.Category cat, org.apache.log4j.Appender appender)
      void disable()
      Disable forwarding of notifications to simulate removal of listener.
      private boolean isEnabled()
      Gets whether proxy is enabled.
      void removeAppenderEvent​(org.apache.log4j.Category cat, org.apache.log4j.Appender appender)
      • Methods inherited from class java.lang.Object

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

      • HierarchyEventListenerProxy

        public HierarchyEventListenerProxy​(LoggerEventListener l)
        Creates new instance.
        Parameters:
        l - listener
    • Method Detail

      • addAppenderEvent

        public void addAppenderEvent​(org.apache.log4j.Category cat,
                                     org.apache.log4j.Appender appender)
        Specified by:
        addAppenderEvent in interface org.apache.log4j.spi.HierarchyEventListener
      • removeAppenderEvent

        public void removeAppenderEvent​(org.apache.log4j.Category cat,
                                        org.apache.log4j.Appender appender)
        Specified by:
        removeAppenderEvent in interface org.apache.log4j.spi.HierarchyEventListener
      • disable

        public void disable()
        Disable forwarding of notifications to simulate removal of listener.
      • isEnabled

        private boolean isEnabled()
        Gets whether proxy is enabled.
        Returns:
        true if proxy is enabled.