org.apache.logging.log4j.flume.appender

Interface FlumeEventFactory

  • All Known Implementing Classes:
    FlumeAppender


    public interface FlumeEventFactory
    Factory to create Flume events.
    • Method Detail

      • createEvent

        FlumeEvent createEvent(LogEvent event,
                             String includes,
                             String excludes,
                             String required,
                             String mdcPrefix,
                             String eventPrefix,
                             boolean compress)
        Create a Flume event.
        Parameters:
        event - The Log4j LogEvent.
        includes - A comma separated list of MDC elements to include.
        excludes - A comma separated list of MDC elements to exclude.
        required - A comma separated list of MDC elements that are required.
        mdcPrefix - The value to prefix to MDC keys.
        eventPrefix - The value to prefix to event keys.
        compress - If true the event body should be compressed.
        Returns:
        A FlumeEvent.

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.