public class CustomLogWriter extends Object implements LogWriter
Constructor and Description |
---|
CustomLogWriter() |
Modifier and Type | Method and 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.
|
public CustomLogWriter()
public void initialMessage(org.slf4j.Logger log)
LogWriter
initialMessage
in interface LogWriter
log
- The log to be written to.public void logRequest(org.slf4j.Logger log, Object command)
LogWriter
logRequest
in interface LogWriter
log
- The log to be written to.command
- The command to be logged.public void logResponse(org.slf4j.Logger log, Object response)
LogWriter
logResponse
in interface LogWriter
log
- The log to be written to.public void logAsyncRequest(org.slf4j.Logger log, Object command)
LogWriter
logAsyncRequest
in interface LogWriter
log
- The log to be written to.command
- The command to be logged.public void logOneWay(org.slf4j.Logger log, Object command)
LogWriter
public void logReceivedCommand(org.slf4j.Logger log, Object command)
LogWriter
logReceivedCommand
in interface LogWriter
log
- The log to be written to.command
- The command to be logged.public void logReceivedException(org.slf4j.Logger log, IOException error)
LogWriter
logReceivedException
in interface LogWriter
log
- The log to be written to.Copyright © 2005–2016. All rights reserved.