Class DefaultLogWriter
- java.lang.Object
-
- org.apache.activemq.transport.logwriters.DefaultLogWriter
-
-
Constructor Summary
Constructors Constructor Description DefaultLogWriter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
initialMessage(org.slf4j.Logger log)
Writes a header message to the log.void
logAsyncRequest(org.slf4j.Logger log, Object command)
Writes a message to a log when an asynchronous equest command is sent.void
logOneWay(org.slf4j.Logger log, Object command)
Writes a message to a log when message is sent.void
logReceivedCommand(org.slf4j.Logger log, Object command)
Writes a message to a log when message is received.void
logReceivedException(org.slf4j.Logger log, IOException error)
Writes a message to a log when an exception is received.void
logRequest(org.slf4j.Logger log, Object command)
Writes a message to a log when a request command is sent.void
logResponse(org.slf4j.Logger log, Object response)
Writes a message to a log when a response command is received.void
setPrefix(String prefix)
prefix each statement with this value.
-
-
-
Method Detail
-
setPrefix
public void setPrefix(String prefix)
Description copied from interface:LogWriter
prefix 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:LogWriter
Writes a header message to the log.- Specified by:
initialMessage
in interfaceLogWriter
- Parameters:
log
- The log to be written to.
-
logRequest
public void logRequest(org.slf4j.Logger log, Object command)
Description copied from interface:LogWriter
Writes a message to a log when a request command is sent.- Specified by:
logRequest
in 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:LogWriter
Writes a message to a log when a response command is received.- Specified by:
logResponse
in 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:LogWriter
Writes a message to a log when an asynchronous equest command is sent.- Specified by:
logAsyncRequest
in 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:LogWriter
Writes a message to a log when message is sent.
-
logReceivedCommand
public void logReceivedCommand(org.slf4j.Logger log, Object command)
Description copied from interface:LogWriter
Writes a message to a log when message is received.- Specified by:
logReceivedCommand
in 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:LogWriter
Writes a message to a log when an exception is received.- Specified by:
logReceivedException
in interfaceLogWriter
- Parameters:
log
- The log to be written to.error
- The exception to be logged.
-
-