Package org.apache.activemq.util
Class JmsLogAppender
- 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.activemq.util.JmsLogAppenderSupport
-
- org.apache.activemq.util.JmsLogAppender
-
- All Implemented Interfaces:
org.apache.logging.log4j.core.Appender
,org.apache.logging.log4j.core.filter.Filterable
,org.apache.logging.log4j.core.impl.LocationAware
,org.apache.logging.log4j.core.LifeCycle
,org.apache.logging.log4j.core.LifeCycle2
public class JmsLogAppender extends JmsLogAppenderSupport
A JMS 1.1 log4j appender which uses ActiveMQ by default and does not require any JNDI configurations
-
-
Constructor Summary
Constructors Constructor Description JmsLogAppender()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Connection
createConnection()
String
getPassword()
String
getUri()
String
getUserName()
void
setPassword(String password)
void
setUri(String uri)
void
setUserName(String userName)
-
Methods inherited from class org.apache.activemq.util.JmsLogAppenderSupport
activateOptions, append, close, createMessage, createProducer, createSession, getConnection, getDestination, getProducer, getSession, requiresLayout, setConnection, setProducer, setSession
-
Methods inherited from class org.apache.logging.log4j.core.appender.AbstractAppender
error, error, error, getHandler, getLayout, getName, ignoreExceptions, parseInt, requiresLocation, setHandler, toSerializable, toString
-
Methods inherited from class org.apache.logging.log4j.core.filter.AbstractFilterable
addFilter, getFilter, getPropertyArray, hasFilter, isFiltered, removeFilter, start, stop, stop
-
Methods inherited from class org.apache.logging.log4j.core.AbstractLifeCycle
equalsImpl, getState, getStatusLogger, hashCodeImpl, initialize, isInitialized, isStarted, isStarting, isStopped, isStopping, setStarted, setStarting, setState, setStopped, setStopping, stop, stop
-
-
-
-
Method Detail
-
getUri
public String getUri()
-
setUri
public void setUri(String uri)
-
getUserName
public String getUserName()
-
setUserName
public void setUserName(String userName)
-
getPassword
public String getPassword()
-
setPassword
public void setPassword(String password)
-
createConnection
protected Connection createConnection() throws JMSException
- Specified by:
createConnection
in classJmsLogAppenderSupport
- Throws:
JMSException
-
-