Class CustomLogWriter

  • All Implemented Interfaces:
    org.apache.activemq.transport.LogWriter

    public class CustomLogWriter
    extends Object
    implements org.apache.activemq.transport.LogWriter
    Custom implementation of LogWriter interface.
    Author:
    David Martin Clavo david(dot)martin(dot)clavo(at)gmail.com
    • Constructor Detail

      • CustomLogWriter

        public CustomLogWriter()
    • Method Detail

      • setPrefix

        public void setPrefix​(String prefix)
        Specified by:
        setPrefix in interface org.apache.activemq.transport.LogWriter
      • initialMessage

        public void initialMessage​(org.slf4j.Logger log)
        Specified by:
        initialMessage in interface org.apache.activemq.transport.LogWriter
      • logRequest

        public void logRequest​(org.slf4j.Logger log,
                               Object command)
        Specified by:
        logRequest in interface org.apache.activemq.transport.LogWriter
      • logResponse

        public void logResponse​(org.slf4j.Logger log,
                                Object response)
        Specified by:
        logResponse in interface org.apache.activemq.transport.LogWriter
      • logAsyncRequest

        public void logAsyncRequest​(org.slf4j.Logger log,
                                    Object command)
        Specified by:
        logAsyncRequest in interface org.apache.activemq.transport.LogWriter
      • logOneWay

        public void logOneWay​(org.slf4j.Logger log,
                              Object command)
        Specified by:
        logOneWay in interface org.apache.activemq.transport.LogWriter
      • logReceivedCommand

        public void logReceivedCommand​(org.slf4j.Logger log,
                                       Object command)
        Specified by:
        logReceivedCommand in interface org.apache.activemq.transport.LogWriter
      • logReceivedException

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