|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.protomatter.syslog.BasicLogger | +--com.protomatter.syslog.JMSLog
A logger that writes messages to JMS. The JMS session used has no transaction attribute itself, so it will obey any JTS transaction context which is currently active.
The SyslogServer
class can be used as
a standalone JMS message receiver. Please see the JavaDoc
for that class for more information.
XML configuration class
Fields inherited from class com.protomatter.syslog.BasicLogger |
formatter, policy, realPolicy |
Fields inherited from interface com.protomatter.syslog.JMSConstants |
JMS_PROP_CHANNEL, JMS_PROP_HOST, JMS_PROP_LEVEL, JMS_PROP_LOGGER, JMS_PROP_MESSAGE, JMS_PROP_MSG_TYPE, JMS_PROP_MSG_TYPE_VALUE, JMS_PROP_THREAD, JMS_PROP_TIME |
Constructor Summary | |
JMSLog()
You will need to call the configure() method if you use this constructor. |
Method Summary | |
void |
flush()
Flush the given logger's output. |
java.lang.String |
getFactoryName()
Get the JNDI name of the JMS connection factory we'll use. |
java.lang.String |
getPass()
Get the password for authenticating to the JMS connection. |
boolean |
getPersistent()
Get the message persistence flag. |
int |
getPriority()
Get the message priority. |
java.lang.String |
getTopicName()
Get the JNDI name of the JMS topic we'll publish to. |
int |
getTTL()
Get the message TTL. |
java.lang.String |
getUser()
Get the username for authenticating to the JMS connection. |
void |
log(SyslogMessage sm)
Write a log message. |
void |
setFactoryName(java.lang.String factoryName)
Set the JNDI name of the JMS connection factory we'll use. |
void |
setPass(java.lang.String pass)
Set the password for authenticating to the JMS connection. |
void |
setPersistent(boolean persistent)
Set the message persistence flag. |
void |
setPriority(int priority)
Set the message priority. |
void |
setTopicName(java.lang.String topicName)
Set the JNDI name of the JMS topic we'll publish to. |
void |
setTTL(int ttl)
Get the message TTL. |
void |
setUser(java.lang.String user)
Set the username for authenticating to the JMS connection. |
void |
shutdown()
Prepare for shutdown. |
void |
start()
|
Methods inherited from class com.protomatter.syslog.BasicLogger |
formatLogEntry, getName, getPolicy, getTextFormatter, isSuspended, mightLog, resetDateFormat, resume, setName, setPolicy, setTextFormatter, shouldLog, suspend |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public JMSLog()
Method Detail |
public int getPriority()
public void setPriority(int priority)
public int getTTL()
public void setTTL(int ttl)
public boolean getPersistent()
public void setPersistent(boolean persistent)
public java.lang.String getTopicName()
public void setTopicName(java.lang.String topicName)
public java.lang.String getFactoryName()
public void setFactoryName(java.lang.String factoryName)
public java.lang.String getUser()
public void setUser(java.lang.String user)
public java.lang.String getPass()
public void setPass(java.lang.String pass)
public final void log(SyslogMessage sm)
Message properties are set as follows:
name | type | value |
JMS_PROP_HOST ("host") | String | Originating host IP address. |
JMS_PROP_TIME ("time") | Long | Time the message was sent. |
JMS_PROP_CHANNEL ("channel") | String | Channel name. |
JMS_PROP_LOGGER ("logger") | String | Full class name of the logger. |
JMS_PROP_MESSAGE ("message") | String | Short message. |
JMS_PROP_LEVEL ("level") | Integer | Severity level. |
JMS_PROP_THREAD ("thread") | String | Originating thread's getName() value. |
public void shutdown()
public void start()
public void flush()
Syslogger
|
Protomatter Classes v1.1.6 Copyright 1998-2001 Nate Sammons |
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Protomatter Classes v1.1.6 | http://protomatter.sourceforge.net/1.1.6 |