|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.logging.Handler
com.caucho.log.JmsHandler
public class JmsHandler
Sends formatted messages to JMS queue/topic
Constructor Summary | |
---|---|
JmsHandler()
|
Method Summary | |
---|---|
void |
addTarget(Destination target)
Adds a target (queue or jms destination) |
void |
close()
Closes the handler. |
void |
flush()
Flushes the buffer. |
void |
init()
Initialize the handler |
void |
publish(java.util.logging.LogRecord record)
Publishes the record. |
void |
setConnectionFactory(ConnectionFactory factory)
Sets the connection factory |
java.lang.String |
toString()
|
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, wait, wait, wait |
Constructor Detail |
---|
public JmsHandler()
Method Detail |
---|
public void setConnectionFactory(ConnectionFactory factory)
public void addTarget(Destination target)
@PostConstruct public void init() throws ConfigException
ConfigException
public void publish(java.util.logging.LogRecord record)
publish
in class java.util.logging.Handler
public void flush()
flush
in class java.util.logging.Handler
public void close()
close
in class java.util.logging.Handler
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |