org.apache.activemq.util
Class JmsLogAppender

java.lang.Object
  extended by org.apache.log4j.AppenderSkeleton
      extended by org.apache.activemq.util.JmsLogAppenderSupport
          extended by org.apache.activemq.util.JmsLogAppender
All Implemented Interfaces:
Appender, OptionHandler

public class JmsLogAppender
extends JmsLogAppenderSupport

A JMS 1.1 log4j appender which uses ActiveMQ by default and does not require any JNDI configurations


Field Summary
 
Fields inherited from class org.apache.activemq.util.JmsLogAppenderSupport
JMS_PUBLISH_ERROR_CODE
 
Fields inherited from class org.apache.log4j.AppenderSkeleton
closed, errorHandler, headFilter, layout, name, tailFilter, threshold
 
Constructor Summary
JmsLogAppender()
           
 
Method Summary
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.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

JmsLogAppender

public JmsLogAppender()
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 class JmsLogAppenderSupport
Throws:
JMSException


Copyright © 2005-2013 The Apache Software Foundation. All Rights Reserved.