public class JMSAppender
extends org.apache.log4j.AppenderSkeleton
implements org.springframework.context.Lifecycle
XMLLayout
of log4j.Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_TOPIC_NAME
Default name of the JMS topic which will be used for jadice server's logging
|
static String |
INSTANCE_UUID |
Constructor and Description |
---|
JMSAppender() |
Modifier and Type | Method and Description |
---|---|
void |
activateOptions() |
void |
append(org.apache.log4j.spi.LoggingEvent loggingEvent) |
protected boolean |
checkEntryConditions() |
void |
close() |
javax.jms.TopicConnectionFactory |
getConnectionFactory() |
String |
getInstanceName() |
String |
getTopic() |
boolean |
isLogLocationInfo() |
boolean |
isLogProperties() |
boolean |
isRunning() |
boolean |
requiresLayout() |
void |
setConnectionFactory(javax.jms.TopicConnectionFactory connectionFactory) |
void |
setInstanceName(String name) |
void |
setLogLocationInfo(boolean logLocationInfo)
Set if the file name and line number of the statement at the origin of the log statement should
be output, default
false . |
void |
setLogProperties(boolean logProperties)
Sets whether MDC key-value pairs should be output, default
false . |
void |
setTopic(String topic) |
void |
start() |
void |
stop() |
public static final String DEFAULT_TOPIC_NAME
public static final String INSTANCE_UUID
public void activateOptions()
activateOptions
in interface org.apache.log4j.spi.OptionHandler
activateOptions
in class org.apache.log4j.AppenderSkeleton
public void append(org.apache.log4j.spi.LoggingEvent loggingEvent)
append
in class org.apache.log4j.AppenderSkeleton
protected boolean checkEntryConditions()
public void close()
close
in interface org.apache.log4j.Appender
public boolean requiresLayout()
requiresLayout
in interface org.apache.log4j.Appender
public javax.jms.TopicConnectionFactory getConnectionFactory()
public void setConnectionFactory(javax.jms.TopicConnectionFactory connectionFactory)
connectionFactory
- the connectionFactory to setpublic String getTopic()
public void setTopic(String topic)
topic
- the topic to setpublic void start()
start
in interface org.springframework.context.Lifecycle
public void stop()
stop
in interface org.springframework.context.Lifecycle
public boolean isRunning()
isRunning
in interface org.springframework.context.Lifecycle
public String getInstanceName()
public void setInstanceName(String name)
name
- the instanceName to setpublic boolean isLogProperties()
true
if MDC key-value pairs should be output.XMLLayout.getProperties()
public void setLogProperties(boolean logProperties)
false
.logProperties
- the new valueXMLLayout.setProperties(boolean)
public boolean isLogLocationInfo()
true
if the location info should be outputXMLLayout.getLocationInfo()
public void setLogLocationInfo(boolean logLocationInfo)
false
.logLocationInfo
- the new valueXMLLayout.setLocationInfo(boolean)
Copyright © 2018 levigo holding gmbh. All rights reserved.