org.apache.logging.log4j.core.appender.mom

Class JmsAppender

    • Constructor Detail

      • JmsAppender

        protected JmsAppender(String name,
                              Filter filter,
                              Layout<? extends Serializable> layout,
                              boolean ignoreExceptions,
                              Property[] properties,
                              JmsManager manager)
                       throws javax.jms.JMSException
        Throws:
        javax.jms.JMSException - not thrown as of 2.9 but retained in the signature for compatibility, will be removed in 3.0
      • JmsAppender

        @Deprecated
        protected JmsAppender(String name,
                                          Filter filter,
                                          Layout<? extends Serializable> layout,
                                          boolean ignoreExceptions,
                                          JmsManager manager)
                                   throws javax.jms.JMSException
        Deprecated. 
        Throws:
        javax.jms.JMSException - not thrown as of 2.9 but retained in the signature for compatibility, will be removed in 3.0
    • Method Detail

      • append

        public void append(LogEvent event)
        Description copied from interface: Appender
        Logs a LogEvent using whatever logic this Appender wishes to use. It is typically recommended to use a bridge pattern not only for the benefits from decoupling an Appender from its implementation, but it is also handy for sharing resources which may require some form of locking.
        Parameters:
        event - The LogEvent.
      • stop

        public boolean stop(long timeout,
                            TimeUnit timeUnit)
        Description copied from class: AbstractFilterable
        Cleanup the Filter.
        Specified by:
        stop in interface LifeCycle2
        Overrides:
        stop in class AbstractFilterable
        Parameters:
        timeout - the maximum time to wait
        timeUnit - the time unit of the timeout argument
        Returns:
        true if the receiver was stopped cleanly and normally, false otherwise.

Copyright © 1999-2021 The 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.