此内容没有您所选择的语言版本。
Chapter 5. Using the API
This chapter explains how to use the AMQ Ruby API to perform common messaging tasks.
For more information, see the AMQ Ruby API reference and AMQ Ruby example suite.
5.1. Logging 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
5.1.1. Enabling protocol logging 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
The client can log AMQP protocol frames to the console. This data is often critical when diagnosing problems.
To enable protocol logging, set the PN_TRACE_FRM environment variable to 1:
Example: Enabling protocol logging
$ export PN_TRACE_FRM=1
$ <your-client-program>
To disable protocol logging, unset the PN_TRACE_FRM environment variable.