java.lang.Objectorg.apache.log4j.AppenderSkeleton
org.apache.log4j.net.JMSAppender
A simple appender based on JMS.
Field Summary |
Fields inherited from class org.apache.log4j.AppenderSkeleton |
closed, errorHandler, headFilter, layout, name, tailFilter, threshold |
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. |
boolean |
getLocationInfo()
Returns value of the LocationInfo property which determines whether location (stack) info is sent to the remote subscriber. |
String |
getTopicBindingName()
Returns the value of the TopicBindingName option. |
String |
getTopicConnectionFactoryBindingName()
Returns the value of the TopicConnectionFactoryBindingName option. |
protected Object |
lookup(Context ctx,
String name)
|
boolean |
requiresLayout()
Configurators call this method to determine if the appender requires a layout. |
void |
setLocationInfo(boolean locationInfo)
If true, the information sent to the remote subscriber will include location information. |
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 |
Constructor Detail |
public JMSAppender()
Method Detail |
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 boolean getLocationInfo()
public void activateOptions()
AppenderSkeleton
activateOptions
in interface OptionHandler
activateOptions
in class AppenderSkeleton
protected Object lookup(Context ctx, String name) throws NamingException
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 void setLocationInfo(boolean locationInfo)
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
.
Copyright © 2000 Micro Focus International Limited. All rights reserved.
This document and the proprietary marks and names used herein are protected by international law.