Class CustomLogWriter
- java.lang.Object
-
- org.apache.activemq.transport.logwriters.CustomLogWriter
-
-
Constructor Summary
Constructors Constructor Description CustomLogWriter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidinitialMessage(org.slf4j.Logger log)Writes a header message to the log.voidlogAsyncRequest(org.slf4j.Logger log, Object command)Writes a message to a log when an asynchronous equest command is sent.voidlogOneWay(org.slf4j.Logger log, Object command)Writes a message to a log when message is sent.voidlogReceivedCommand(org.slf4j.Logger log, Object command)Writes a message to a log when message is received.voidlogReceivedException(org.slf4j.Logger log, IOException error)Writes a message to a log when an exception is received.voidlogRequest(org.slf4j.Logger log, Object command)Writes a message to a log when a request command is sent.voidlogResponse(org.slf4j.Logger log, Object response)Writes a message to a log when a response command is received.voidsetPrefix(String prefix)prefix each statement with this value.
-
-
-
Method Detail
-
setPrefix
public void setPrefix(String prefix)
Description copied from interface:LogWriterprefix each statement with this value. allows connections to be correlated when logger is shared
-
initialMessage
public void initialMessage(org.slf4j.Logger log)
Description copied from interface:LogWriterWrites a header message to the log.- Specified by:
initialMessagein interfaceLogWriter- Parameters:
log- The log to be written to.
-
logRequest
public void logRequest(org.slf4j.Logger log, Object command)Description copied from interface:LogWriterWrites a message to a log when a request command is sent.- Specified by:
logRequestin interfaceLogWriter- Parameters:
log- The log to be written to.command- The command to be logged.
-
logResponse
public void logResponse(org.slf4j.Logger log, Object response)Description copied from interface:LogWriterWrites a message to a log when a response command is received.- Specified by:
logResponsein interfaceLogWriter- Parameters:
log- The log to be written to.response- The command to be logged.
-
logAsyncRequest
public void logAsyncRequest(org.slf4j.Logger log, Object command)Description copied from interface:LogWriterWrites a message to a log when an asynchronous equest command is sent.- Specified by:
logAsyncRequestin interfaceLogWriter- Parameters:
log- The log to be written to.command- The command to be logged.
-
logOneWay
public void logOneWay(org.slf4j.Logger log, Object command)Description copied from interface:LogWriterWrites a message to a log when message is sent.
-
logReceivedCommand
public void logReceivedCommand(org.slf4j.Logger log, Object command)Description copied from interface:LogWriterWrites a message to a log when message is received.- Specified by:
logReceivedCommandin interfaceLogWriter- Parameters:
log- The log to be written to.command- The command to be logged.
-
logReceivedException
public void logReceivedException(org.slf4j.Logger log, IOException error)Description copied from interface:LogWriterWrites a message to a log when an exception is received.- Specified by:
logReceivedExceptionin interfaceLogWriter- Parameters:
log- The log to be written to.error- The exception to be logged.
-
-