|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.log.output.jms.TextMessageBuilder
Basic message factory that stores LogEvent in Message.
Field Summary | |
private Formatter |
m_formatter
|
private PropertyInfo[] |
m_properties
|
Constructor Summary | |
TextMessageBuilder(Formatter formatter)
Creation of a new text message builder. |
|
TextMessageBuilder(PropertyInfo[] properties,
Formatter formatter)
Creation of a new text message builder. |
Method Summary | |
Message |
buildMessage(Session session,
LogEvent event)
Build a message from the supplied session for the supplied event |
private java.lang.String |
getContextMap(ContextMap map,
java.lang.String aux)
|
private java.lang.String |
getStackTrace(java.lang.Throwable throwable)
|
private java.lang.String |
getText(LogEvent event)
|
private void |
setProperty(TextMessage message,
int index,
LogEvent event)
Set a property |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private final PropertyInfo[] m_properties
private final Formatter m_formatter
Constructor Detail |
public TextMessageBuilder(Formatter formatter)
formatter
- the message formatterpublic TextMessageBuilder(PropertyInfo[] properties, Formatter formatter)
properties
- the property info setformatter
- the message formatterMethod Detail |
public Message buildMessage(Session session, LogEvent event) throws JMSException
buildMessage
in interface MessageBuilder
session
- the sessionevent
- the log event
JMSException
- if a messaging related error occursprivate void setProperty(TextMessage message, int index, LogEvent event) throws JMSException
message
- the text messageindex
- the indexevent
- the log event
JMSException
private java.lang.String getText(LogEvent event)
private java.lang.String getStackTrace(java.lang.Throwable throwable)
private java.lang.String getContextMap(ContextMap map, java.lang.String aux)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |