org.apache.activemq.transport.logwriters
Class DefaultLogWriter

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

public class DefaultLogWriter
extends Object
implements LogWriter

Implementation of LogWriter interface to keep ActiveMQ's old logging format.

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

Constructor Summary
DefaultLogWriter()
           
 
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

DefaultLogWriter

public DefaultLogWriter()
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.