I tried it with 5.7 and it worked fine. I used the log4j settings Aleksandar posted and the ?transport.trace=true on the transport connector in the broker config. It logged the STOMP frames to a separate file.
On Mon, Mar 11, 2013 at 9:56 AM, Dejan Bosanac <[email protected]> wrote: > Hi, > > just tried it here on 5.8.0 and it works as advertised :) > > Regards > -- > Dejan Bosanac > ---------------------- > Red Hat, Inc. > FuseSource is now part of Red Hat > [email protected] > Twitter: @dejanb > Blog: http://sensatic.net > ActiveMQ in Action: http://www.manning.com/snyder/ > > > On Mon, Mar 11, 2013 at 4:18 PM, Aleksandar Ivanisevic > <[email protected]> wrote: > > Christian Posta > > <[email protected]> writes: > > > >> Maybe try ?transport.trace=true > > > > Nope, still the same. All I get in the log are these traces and > > nothing else: > > > > 2013-03-08 11:31:57,069 [6.181.231:54176] DEBUG ProtocolConverter > - Stomp Connect heartbeat conf RW[0,0] > > 2013-03-08 11:31:57,070 [6.181.218:48947] DEBUG StompInactivityMonitor > - Stomp Inactivity Monitor read check: 0, write check: 0 > > 2013-03-08 11:31:57,071 [6.181.218:48947] DEBUG ProtocolConverter > - Stomp Connect heartbeat conf RW[0,0] > > 2013-03-08 11:31:57,080 [7.222.222:43277] DEBUG StompInactivityMonitor > - Stomp Inactivity Monitor read check: 0, write check: 0 > > 2013-03-08 11:31:57,080 [7.222.222:43277] DEBUG ProtocolConverter > - Stomp Connect heartbeat conf RW[0,0] > > > > > >> On Fri, Mar 8, 2013 at 5:01 AM, Aleksandar Ivanisevic < > >> [email protected]> wrote: > >> > >>> > >>> Using AMQ 5.7.0, I want to log all STOMP frames. As per docs in > >>> http://activemq.apache.org/stomp.html section Debugging I have added > >>> ?trace=true to the uri in transportConnector and the following in > >>> log4j.properties: > >>> > >>> # stomp tracing > >>> log4j.appender.stomp=org.apache.log4j.RollingFileAppender > >>> log4j.appender.stomp.file=/tmp/stomp.log > >>> log4j.appender.stomp.maxFileSize=1024KB > >>> log4j.appender.stomp.maxBackupIndex=10 > >>> log4j.appender.stomp.append=true > >>> log4j.appender.stomp.layout=org.apache.log4j.PatternLayout > >>> log4j.appender.stomp.layout.ConversionPattern=%d [%-15.15t] %-5p > >>> %-30.30c{1} - %m%n > >>> > >>> #log4j.logger.org.apache.activemq.transport.stomp=TRACE, stomp > >>> # enable this line and disable the above if you just want the frame IO. > >>> log4j.logger.org.apache.activemq.transport.stomp.StompIO=TRACE, stomp > >>> log4j.additivity.org.apache.activemq.transport.stomp=false > >>> > >>> > >>> But im not seeing anything in the stomp.log. If I enable the full > >>> logging and not just StompIO, I see STOMP related debug messages from > >>> AMQ but no protocol frames. > >>> > >>> Any clues? > >>> > >>> > >>> > >> > >> > >> -- > >> *Christian Posta* > >> http://www.christianposta.com/blog > >> twitter: @christianposta > > > > > -- *Christian Posta* http://www.christianposta.com/blog twitter: @christianposta
