org.apache.activemq.transport.logwriters
Class CustomLogWriter

java.lang.Object
  extended by org.apache.activemq.transport.logwriters.CustomLogWriter
All Implemented Interfaces:
LogWriter

public class CustomLogWriter
extends Object
implements LogWriter

Custom implementation of LogWriter interface.

Author:
David Martin Clavo david(dot)martin(dot)clavo(at)gmail.com

Constructor Summary
CustomLogWriter()
           
 
Method Summary
 void initialMessage(org.slf4j.Logger log)
           
 void logAsyncRequest(org.slf4j.Logger log, Object command)
           
 void logOneWay(org.slf4j.Logger log, Object command)
           
 void logReceivedCommand(org.slf4j.Logger log, Object command)
           
 void logReceivedException(org.slf4j.Logger log, IOException error)
           
 void logRequest(org.slf4j.Logger log, Object command)
           
 void logResponse(org.slf4j.Logger log, Object response)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CustomLogWriter

public CustomLogWriter()
Method Detail

initialMessage

public void initialMessage(org.slf4j.Logger log)
Specified by:
initialMessage in interface LogWriter

logRequest

public void logRequest(org.slf4j.Logger log,
                       Object command)
Specified by:
logRequest in interface LogWriter

logResponse

public void logResponse(org.slf4j.Logger log,
                        Object response)
Specified by:
logResponse in interface LogWriter

logAsyncRequest

public void logAsyncRequest(org.slf4j.Logger log,
                            Object command)
Specified by:
logAsyncRequest in interface LogWriter

logOneWay

public void logOneWay(org.slf4j.Logger log,
                      Object command)
Specified by:
logOneWay in interface LogWriter

logReceivedCommand

public void logReceivedCommand(org.slf4j.Logger log,
                               Object command)
Specified by:
logReceivedCommand in interface LogWriter

logReceivedException

public void logReceivedException(org.slf4j.Logger log,
                                 IOException error)
Specified by:
logReceivedException in interface LogWriter


Copyright © 2005-2013 The Apache Software Foundation. All Rights Reserved.