Package org.apache.log4j.spi

Examples of org.apache.log4j.spi.HierarchyEventListener


  public
  void fireAddAppenderEvent(Category logger, Appender appender) {
    if(listeners != null) {
      int size = listeners.size();
      HierarchyEventListener listener;
      for(int i = 0; i < size; i++) {
  listener = (HierarchyEventListener) listeners.elementAt(i);
  listener.addAppenderEvent(logger, appender);
      }
    }
  }
View Full Code Here


  }

  void fireRemoveAppenderEvent(Category logger, Appender appender) {
    if(listeners != null) {
      int size = listeners.size();
      HierarchyEventListener listener;
      for(int i = 0; i < size; i++) {
  listener = (HierarchyEventListener) listeners.elementAt(i);
  listener.removeAppenderEvent(logger, appender);
      }
    }
  }
View Full Code Here

/*     */   {
/* 187 */     if (this.listeners != null) {
/* 188 */       int size = this.listeners.size();
/*     */
/* 190 */       for (int i = 0; i < size; i++) {
/* 191 */         HierarchyEventListener listener = (HierarchyEventListener)this.listeners.elementAt(i);
/* 192 */         listener.addAppenderEvent(logger, appender);
/*     */       }
/*     */     }
/*     */   }
View Full Code Here

/*     */   void fireRemoveAppenderEvent(Category logger, Appender appender) {
/* 198 */     if (this.listeners != null) {
/* 199 */       int size = this.listeners.size();
/*     */
/* 201 */       for (int i = 0; i < size; i++) {
/* 202 */         HierarchyEventListener listener = (HierarchyEventListener)this.listeners.elementAt(i);
/* 203 */         listener.removeAppenderEvent(logger, appender);
/*     */       }
/*     */     }
/*     */   }
View Full Code Here

    if (this.listeners != null)
    {
      int i = this.listeners.size();
      for (int j = 0; j < i; j++)
      {
        HierarchyEventListener localHierarchyEventListener = (HierarchyEventListener)this.listeners.elementAt(j);
        localHierarchyEventListener.addAppenderEvent(paramCategory, paramAppender);
      }
    }
  }
View Full Code Here

    if (this.listeners != null)
    {
      int i = this.listeners.size();
      for (int j = 0; j < i; j++)
      {
        HierarchyEventListener localHierarchyEventListener = (HierarchyEventListener)this.listeners.elementAt(j);
        localHierarchyEventListener.removeAppenderEvent(paramCategory, paramAppender);
      }
    }
  }
View Full Code Here

        }
    }

    public void fireRemoveAppenderEvent(Category logger, Appender appender) {
        if (listeners != null) {
            HierarchyEventListener listener;
            for (Iterator<HierarchyEventListener> it = listeners.iterator(); it
                    .hasNext();) {
                listener = it.next();
                listener.removeAppenderEvent(logger, appender);
            }
        }

    }
View Full Code Here

     * , org.apache.log4j.Appender)
     */
    @Override
    public void fireAddAppenderEvent(Category logger, Appender appender) {
        if (listeners != null) {
            HierarchyEventListener listener;
            for (Iterator<HierarchyEventListener> it = listeners.iterator(); it
                    .hasNext();) {
                listener = it.next();
                listener.addAppenderEvent(logger, appender);
            }
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.log4j.spi.HierarchyEventListener

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.