public class CustomLogWriter extends Object implements LogWriter
| Constructor and Description |
|---|
CustomLogWriter() |
| Modifier and Type | Method and Description |
|---|---|
void |
initialMessage(Logger log)
Writes a header message to the log.
|
void |
logAsyncRequest(Logger log,
Object command)
Writes a message to a log when an asynchronous equest command is sent.
|
void |
logOneWay(Logger log,
Object command)
Writes a message to a log when message is sent.
|
void |
logReceivedCommand(Logger log,
Object command)
Writes a message to a log when message is received.
|
void |
logReceivedException(Logger log,
IOException error)
Writes a message to a log when an exception is received.
|
void |
logRequest(Logger log,
Object command)
Writes a message to a log when a request command is sent.
|
void |
logResponse(Logger log,
Object response)
Writes a message to a log when a response command is received.
|
public CustomLogWriter()
public void initialMessage(Logger log)
LogWriterinitialMessage in interface LogWriterlog - The log to be written to.public void logRequest(Logger log, Object command)
LogWriterlogRequest in interface LogWriterlog - The log to be written to.command - The command to be logged.public void logResponse(Logger log, Object response)
LogWriterlogResponse in interface LogWriterlog - The log to be written to.public void logAsyncRequest(Logger log, Object command)
LogWriterlogAsyncRequest in interface LogWriterlog - The log to be written to.command - The command to be logged.public void logOneWay(Logger log, Object command)
LogWriterpublic void logReceivedCommand(Logger log, Object command)
LogWriterlogReceivedCommand in interface LogWriterlog - The log to be written to.command - The command to be logged.public void logReceivedException(Logger log, IOException error)
LogWriterlogReceivedException in interface LogWriterlog - The log to be written to.Copyright © 2005–2016 FuseSource, Corp.. All rights reserved.