org.apache.logging.log4j.core.appender

Class AsyncAppender

    • Method Detail

      • append

        public void append(LogEvent logEvent)
        Actual writing occurs here.
        Parameters:
        logEvent - The LogEvent.
      • getAppenderRefStrings

        public String[] getAppenderRefStrings()
        Returns the names of the appenders that this asyncAppender delegates to as an array of Strings.
        Returns:
        the names of the sink appenders
      • isIncludeLocation

        public boolean isIncludeLocation()
        Returns true if this AsyncAppender will take a snapshot of the stack with every log event to determine the class and method where the logging call was made.
        Returns:
        true if location is included with every event, false otherwise
      • isBlocking

        public boolean isBlocking()
        Returns true if this AsyncAppender will block when the queue is full, or false if events are dropped when the queue is full.
        Returns:
        whether this AsyncAppender will block or drop events when the queue is full.
      • getErrorRef

        public String getErrorRef()
        Returns the name of the appender that any errors are logged to or null.
        Returns:
        the name of the appender that any errors are logged to or null
      • getQueueCapacity

        public int getQueueCapacity()
      • getQueueRemainingCapacity

        public int getQueueRemainingCapacity()

Copyright © 1999-2015 Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.