org.apache.logging.log4j.core.appender
Class JMSQueueAppender<T extends Serializable>
java.lang.Object
org.apache.logging.log4j.core.filter.AbstractFilterable
org.apache.logging.log4j.core.appender.AbstractAppender<T>
org.apache.logging.log4j.core.appender.JMSQueueAppender<T>
- Type Parameters:
T
- The Layout
's Serializable
type.
- All Implemented Interfaces:
- Appender<T>, Filterable, LifeCycle
public final class JMSQueueAppender<T extends Serializable>
- extends AbstractAppender<T>
Appender to write to a JMS Queue.
Method Summary |
void |
append(LogEvent event)
Actual writing occurs here. |
static
|
createAppender(String name,
String factoryName,
String providerURL,
String urlPkgPrefixes,
String securityPrincipalName,
String securityCredentials,
String factoryBindingName,
String queueBindingName,
String userName,
String password,
Layout<S> layout,
Filter filter,
String suppress)
Create a JMSQueueAppender. |
Methods inherited from class org.apache.logging.log4j.core.appender.AbstractAppender |
error, error, error, getHandler, getLayout, getName, isExceptionSuppressed, isStarted, parseInt, setHandler, start, stop, toString |
append
public void append(LogEvent event)
- Actual writing occurs here.
- Parameters:
event
- The LogEvent.
createAppender
public static <S extends Serializable> JMSQueueAppender<S> createAppender(String name,
String factoryName,
String providerURL,
String urlPkgPrefixes,
String securityPrincipalName,
String securityCredentials,
String factoryBindingName,
String queueBindingName,
String userName,
String password,
Layout<S> layout,
Filter filter,
String suppress)
- Create a JMSQueueAppender.
- Type Parameters:
S
- The Layout
's Serializable
type.- Parameters:
name
- The name of the Appender.factoryName
- The fully qualified class name of the InitialContextFactory.providerURL
- The URL of the provider to use.urlPkgPrefixes
- A colon-separated list of package prefixes for the class name of the factory class that
will create a URL context factorysecurityPrincipalName
- The name of the identity of the Principal.securityCredentials
- The security credentials of the Principal.factoryBindingName
- The name to locate in the Context that provides the QueueConnectionFactory.queueBindingName
- The name to use to locate the Queue.userName
- The userid to use to create the Queue Connection.password
- The password to use to create the Queue Connection.layout
- The layout to use (defaults to SerializedLayout).filter
- The Filter or null.suppress
- "true" if exceptions should be hidden from the application, "false" otherwise.
The default is "true".
- Returns:
- The JMSQueueAppender.
Copyright © 1999-2013 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.