[
https://issues.apache.org/jira/browse/QPID-5683?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13967209#comment-13967209
]
Rob Godfrey commented on QPID-5683:
-----------------------------------
Because the underlying libraries for AMQP 1.0 were built to have no
dependencies, they use Java Logging rather than log4j, which is why the
protocol logging didn't show up.
I've change the library such that a different logger can be used, and you
should now be able to enable protocol logging in 1.0 as well... Two log4J
loggers are used: "FRM" and "RAW" (the former for frame level logging, the
latter for byte level), both log at debug level.
> 1.0 protocol logging is much less complete than 0-10 logging
> ------------------------------------------------------------
>
> Key: QPID-5683
> URL: https://issues.apache.org/jira/browse/QPID-5683
> Project: Qpid
> Issue Type: Improvement
> Components: Java Broker
> Affects Versions: 0.26, 0.29
> Reporter: Justin Ross
>
> The following test program shows the difference. I have the java broker
> logging set to trace.
> Test program:
> {noformat}
> import sys
> # You will need to build the swig python binding and point at it
> sys.path.append("/home/jross/code/qpid/cpp/build/bindings/qpid/python")
> from qpid_messaging import Connection
> conn = Connection("0.0.0.0:5672", protocol="amqp1.0")
> conn.open()
> try:
> session = conn.session()
> sender = session.sender("test")
> message = Message("test")
> sender.send(message)
> finally:
> conn.close()
> {noformat}
> With "amqp1.0" as the protocol, I get the following output:
> {noformat}
> 2014-04-11 11:26:16,491 INFO [IoReceiver - /127.0.0.1:34965]
> (stats.StatisticsCounter) - Resetting statistics for counter: counter-17
> 2014-04-11 11:26:16,492 INFO [IoReceiver - /127.0.0.1:34965]
> (stats.StatisticsCounter) - Resetting statistics for counter: counter-18
> 2014-04-11 11:26:16,492 INFO [IoReceiver - /127.0.0.1:34965]
> (stats.StatisticsCounter) - Resetting statistics for counter: counter-19
> 2014-04-11 11:26:16,492 INFO [IoReceiver - /127.0.0.1:34965]
> (stats.StatisticsCounter) - Resetting statistics for counter: counter-20
> {noformat}
> If, however, I set it to 0-10, I get a lot more (very nice) logging.
--
This message was sent by Atlassian JIRA
(v6.2#6252)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]