You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by Rajith Attapattu <ra...@gmail.com> on 2009/11/03 16:23:17 UTC

[Java] Minor enhancements to QpidTestCase

Hi All,

I have added some minor enhancements to our test framework at rev
832452 in Qpid trunk.
It introduces two jvm args "broker.log.interleave" and "broker.log.prefix".
The goal was to make it easy to parse/look at log files.

broker.log.interleave if set to false, will print the broker output
into a separate file.
The file name will be in the following format and placed alongside the
test output.
"%s/TEST-%s.broker.out"

Ex.
TEST-org.apache.qpid.test.client.failover.FailoverTest.testP2PFailover.out
TEST-org.apache.qpid.test.client.failover.FailoverTest.testP2PFailover.broker.out

"broker.log.interleave" is set to true in module.xml to default to the
current behaviour.

"broker.log.prefix" which is set to "BROKER: " in the module.xml will
prefix each broker output line.
This would help to follow the log files more easily as it would help
to distinguish between broker and client output.
It would also be handy for grep.

Regards,

Rajith Attapattu
Red Hat
http://rajith.2rlabs.com/

---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:dev-subscribe@qpid.apache.org