Chapter 10. Logging


10.1. Configuring logging

AMQ JavaScript uses the JavaScript debug module to implement logging.

For example, to enable detailed client logging, set the DEBUG environment variable to rhea*:

Example: Enabling detailed logging

$ export DEBUG=rhea*
$ <your-client-program>
Copy to Clipboard Toggle word wrap

10.2. 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 DEBUG environment variable to rhea:frames:

Example: Enabling protocol logging

$ export DEBUG=rhea:frames
$ <your-client-program>
Copy to Clipboard Toggle word wrap

Back to top
Red Hat logoGithubredditYoutubeTwitter

Learn

Try, buy, & sell

Communities

About Red Hat Documentation

We help Red Hat users innovate and achieve their goals with our products and services with content they can trust. Explore our recent updates.

Making open source more inclusive

Red Hat is committed to replacing problematic language in our code, documentation, and web properties. For more details, see the Red Hat Blog.

About Red Hat

We deliver hardened solutions that make it easier for enterprises to work across platforms and environments, from the core datacenter to the network edge.

Theme

© 2025 Red Hat