Package org.apache.log4j.helpers

Examples of org.apache.log4j.helpers.AppenderAttachableImpl


  private boolean interruptedWarningMessage = false;

  public AsyncAppender() {
    // Note: The dispatcher code assumes that the aai is set once and
    // for all.
    aai = new AppenderAttachableImpl();
    dispatcher = new Dispatcher(bf, this);
    dispatcher.start();
  }
View Full Code Here


  public void addAppender(Appender newAppender) {
    // BEGIN - WRITE LOCK
    lock.getWriteLock();

    if (aai == null) {
      aai = new AppenderAttachableImpl();
    }

    aai.addAppender(newAppender);
    lock.releaseWriteLock();
    //  END - WRITE LOCK
View Full Code Here

  private boolean debug;

  public NonBlockingAsyncAppender() {
    // Note: The dispatcher code assumes that the aai is set once and
    // for all.
    aai = new AppenderAttachableImpl();
    dispatcher = new Dispatcher(bf, this);
    dispatcher.start();
  }
View Full Code Here

  private final ConcurrentHashMap<String, List<LoggingEvent>> cachedEvents;
  // A timer for each logger for which we're caching events. Key is the name of the logger.
  private final ConcurrentHashMap<String, Timer> timers;
 
  public EventConsolidatingAppender() {
    appenders = new AppenderAttachableImpl();
    cachedEvents = new ConcurrentHashMap<String, List<LoggingEvent>>();
    timers = new ConcurrentHashMap<String, Timer>();
  }
View Full Code Here

  private boolean interruptedWarningMessage = false;

  public AsyncAppender() {
    // Note: The dispatcher code assumes that the aai is set once and
    // for all.
    aai = new AppenderAttachableImpl();
    dispatcher = new Dispatcher(bf, this);
    dispatcher.start();
  }
View Full Code Here

  public void addAppender(Appender newAppender) {
    // BEGIN - WRITE LOCK
    lock.getWriteLock();

    if (aai == null) {
      aai = new AppenderAttachableImpl();
    }

    aai.addAppender(newAppender);
    lock.releaseWriteLock();
    //  END - WRITE LOCK
View Full Code Here

  public
  AsyncAppender() {
    // Note: The dispatcher code assumes that the aai is set once and
    // for all!!!
    aai = new AppenderAttachableImpl();
    dispatcher = new Dispatcher(bf, this);
    dispatcher.start();
  }
View Full Code Here

  */
  synchronized 
  public
  void addAppender(Appender newAppender) {
    if(aai == null) {
      aai = new AppenderAttachableImpl();
    }
    aai.addAppender(newAppender);
    repository.fireAddAppenderEvent(this, newAppender);
  }
View Full Code Here

    public AsyncAppender (boolean isConsoleWriteSuspended)
    {
        // Note: The dispatcher code assumes that the aai is set once and
        // for all.
        this.isConsoleWriteSuspended = isConsoleWriteSuspended;
        aai = new AppenderAttachableImpl();
        dispatcher = new Dispatcher(bf, this);
        dispatcher.start();
    }
View Full Code Here

  public
  AsyncAppender() {
    // Note: The dispatcher code assumes that the aai is set once and
    // for all.
    aai = new AppenderAttachableImpl();
    dispatcher = new Dispatcher(bf, this);
    dispatcher.start();
  }
View Full Code Here

TOP

Related Classes of org.apache.log4j.helpers.AppenderAttachableImpl

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.