|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.logging.Handler
org.csstudio.logging.JMSLogHandler
public class JMSLogHandler
Log handler that sends messages to JMS
See JMSLogWriter for details on usage of Formatter.
Note that this handler needs an explicit start().
| Constructor Summary | |
|---|---|
JMSLogHandler(java.lang.String jms_url,
java.lang.String topic)
Initialize |
|
| Method Summary | |
|---|---|
void |
close()
|
void |
flush()
|
void |
publish(java.util.logging.LogRecord record)
|
void |
start()
Start background thread that handles the JMS communication. |
| Methods inherited from class java.util.logging.Handler |
|---|
getEncoding, getErrorManager, getFilter, getFormatter, getLevel, isLoggable, reportError, setEncoding, setErrorManager, setFilter, setFormatter, setLevel |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JMSLogHandler(java.lang.String jms_url,
java.lang.String topic)
jms_url - JMS server URLtopic - JMS topic| Method Detail |
|---|
public void start()
java.lang.IllegalStateException - when already startedpublic void publish(java.util.logging.LogRecord record)
publish in class java.util.logging.Handlerpublic void flush()
flush in class java.util.logging.Handler
public void close()
throws java.lang.SecurityException
close in class java.util.logging.Handlerjava.lang.SecurityException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||