|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface LogWriter
Interface for classes that will be called by the TransportLogger class to actually write to a log file. Every class that implements this interface has do be declared in the resources/META-INF/services/org/apache/activemq/transport/logwriters directory, by creating a file with the name of the writer (for example "default") and including the line class=org.apache.activemq.transport.logwriters.(Name of the LogWriter class)
Method Summary | |
---|---|
void |
initialMessage(org.slf4j.Logger log)
Writes a header message to the log. |
void |
logAsyncRequest(org.slf4j.Logger log,
java.lang.Object command)
Writes a message to a log when an asynchronous equest command is sent. |
void |
logOneWay(org.slf4j.Logger log,
java.lang.Object command)
Writes a message to a log when message is sent. |
void |
logReceivedCommand(org.slf4j.Logger log,
java.lang.Object command)
Writes a message to a log when message is received. |
void |
logReceivedException(org.slf4j.Logger log,
java.io.IOException error)
Writes a message to a log when an exception is received. |
void |
logRequest(org.slf4j.Logger log,
java.lang.Object command)
Writes a message to a log when a request command is sent. |
void |
logResponse(org.slf4j.Logger log,
java.lang.Object response)
Writes a message to a log when a response command is received. |
Method Detail |
---|
void initialMessage(org.slf4j.Logger log)
log
- The log to be written to.void logRequest(org.slf4j.Logger log, java.lang.Object command)
log
- The log to be written to.command
- The command to be logged.void logResponse(org.slf4j.Logger log, java.lang.Object response)
log
- The log to be written to.command
- The command to be logged.void logAsyncRequest(org.slf4j.Logger log, java.lang.Object command)
log
- The log to be written to.command
- The command to be logged.void logOneWay(org.slf4j.Logger log, java.lang.Object command)
log
- The log to be written to.command
- The command to be logged.void logReceivedCommand(org.slf4j.Logger log, java.lang.Object command)
log
- The log to be written to.command
- The command to be logged.void logReceivedException(org.slf4j.Logger log, java.io.IOException error)
log
- The log to be written to.command
- The command to be logged.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |