|
Log4j 1.1.3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.log4j.AppenderSkeleton | +--org.apache.log4j.net.JMSAppender
A simple appender based on JMS.
Field Summary | |
static String |
TOPIC_BINDING_NAME_OPTION
Deprecated. Options are now handled using the JavaBeans paradigm. This constant is not longer needed and will be removed in the near term. |
static String |
TOPIC_CONNECTION_FACTORY_BINDING_NAME_OPTION
Deprecated. Options are now handled using the JavaBeans paradigm. This constant is not longer needed and will be removed in the near term. |
Fields inherited from class org.apache.log4j.AppenderSkeleton |
closed, errorHandler, headFilter, layout, name, tailFilter, threshold, THRESHOLD_OPTION |
Constructor Summary | |
JMSAppender()
|
Method Summary | |
void |
activateOptions()
Derived appenders should override this method if option structure requires it. |
void |
append(LoggingEvent event)
This method called by AppenderSkeleton.doAppend(org.apache.log4j.spi.LoggingEvent) method to
do most of the real appending work. |
protected boolean |
checkEntryConditions()
|
void |
close()
Close this JMSAppender. |
String[] |
getOptionStrings()
Deprecated. We now use JavaBeans introspection to configure components. Options strings are no longer needed. |
String |
getTopicBindingName()
Returns the value of the TopicBindingName option. |
String |
getTopicConnectionFactoryBindingName()
Returns the value of the TopicConnectionFactoryBindingName option. |
protected Object |
lookup(javax.naming.Context ctx,
String name)
|
boolean |
requiresLayout()
Configurators call this method to determine if the appender requires a layout. |
void |
setOption(String key,
String value)
Deprecated. Use the setter method for the option directly instead of the generic setOption method. |
void |
setTopicBindingName(String topicBindingName)
The TopicBindingName option takes a string value. |
void |
setTopicConnectionFactoryBindingName(String tcfBindingName)
The TopicConnectionFactoryBindingName option takes a string value. |
Methods inherited from class org.apache.log4j.AppenderSkeleton |
addFilter, clearFilters, doAppend, finalize, getErrorHandler, getFilter, getFirstFilter, getLayout, getName, getThreshold, isAsSevereAsThreshold, setErrorHandler, setLayout, setName, setThreshold |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String TOPIC_CONNECTION_FACTORY_BINDING_NAME_OPTION
Note that all option keys are case sensitive.
public static final String TOPIC_BINDING_NAME_OPTION
Note that all option keys are case sensitive.
Constructor Detail |
public JMSAppender()
Method Detail |
public String[] getOptionStrings()
TOPIC_BINDING_NAME_OPTION
, TOPIC_CONNECTION_FACTORY_BINDING_NAME_OPTION
in addition to the
options of its super class AppenderSkeleton
.getOptionStrings
in class AppenderSkeleton
public void setOption(String key, String value)
setOption
method.
JMSAppender
specific options.
The options of the super class AppenderSkeleton
are also
recognized.
The TopicConnectionFactoryBindingName option takes a
string value. Its value will be used to lookup the appropriate
TopicConnectionFactory
from the JNDI context.
The TopicBindingName option takes a
string value. Its value will be used to lookup the appropriate
Topic
from the JNDI context.
setOption
in class AppenderSkeleton
public void setTopicConnectionFactoryBindingName(String tcfBindingName)
TopicConnectionFactory
from the JNDI context.public String getTopicConnectionFactoryBindingName()
public void setTopicBindingName(String topicBindingName)
Topic
from the JNDI context.public String getTopicBindingName()
public void activateOptions()
AppenderSkeleton
activateOptions
in class AppenderSkeleton
protected Object lookup(javax.naming.Context ctx, String name) throws javax.naming.NamingException
protected boolean checkEntryConditions()
public void close()
public void append(LoggingEvent event)
AppenderSkeleton.doAppend(org.apache.log4j.spi.LoggingEvent)
method to
do most of the real appending work.append
in class AppenderSkeleton
public boolean requiresLayout()
Appender
true
,
meaning that layout is required, then the configurator will
configure an layout using the configuration information at its
disposal. If this method returns false
, meaning that
a layout is not required, then layout configuration will be
skipped even if there is available layout configuration
information at the disposal of the configurator..
In the rather exceptional case, where the appender
implementation admits a layout but can also work without it, then
the appender should return true
.
|
Log4j 1.1.3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |