org.apache.logging.log4j.core.appender.mom
Class JmsAppender
java.lang.Object
org.apache.logging.log4j.core.AbstractLifeCycle
org.apache.logging.log4j.core.filter.AbstractFilterable
org.apache.logging.log4j.core.appender.AbstractAppender
org.apache.logging.log4j.core.appender.mom.JmsAppender
- All Implemented Interfaces:
- Serializable, Appender, Filterable, LifeCycle
@Plugin(name="JMS",
category="Core",
elementType="appender",
printObject=true)
@PluginAliases(value={"JMSQueue","JMSTopic"})
public class JmsAppender
- extends AbstractAppender
Generic JMS Appender plugin for both queues and topics. This Appender replaces the previous split ones. However,
configurations set up for the 2.0 version of the JMS appenders will still work.
- See Also:
- Serialized Form
Methods inherited from class org.apache.logging.log4j.core.AbstractLifeCycle |
equalsImpl, getState, hashCodeImpl, isInitialized, isStarted, isStarting, isStopped, isStopping, setStarted, setStarting, setState, setStopped, setStopping |
JmsAppender
protected JmsAppender(String name,
Filter filter,
Layout<? extends Serializable> layout,
boolean ignoreExceptions,
JmsManager manager)
throws JMSException
- Throws:
JMSException
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.
newBuilder
@PluginBuilderFactory
public static JmsAppender.Builder newBuilder()
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.