Display Logs for the Java JMS Client

In this procedure, you will learn how to gather data on Kaazing Java JMS client.

You can control the log levels for the Java client in the logging.properties file on your operating system. For example, for Java 8 (required) on Mac OS X, this file is located in /Library/Java/JavaVirtualMachines/jdk1.8.0_73.jdk/Contents/Home/jre/lib/logging.properties.

For more information, see Java Logging Overview. Ensure that you have write permissions to this file.

Before You Begin

This procedure is part of Checklist: How to Build Java JMS Clients.

Note: Learn about supported browsers, operating systems, and platform versions in the Release Notes.

To Display Logs for the Java JMS Client

  1. Build your Java JMS client, as described in Using the Kaazing Gateway Java JMS Client Library.
  2. Add the following line to the logging.properties file to display the complete log output:

    com.kaazing.gateway.jms.client.level = ALL

  3. Configure the ConsoleLogHandler to display all messages by changing the line:

    java.util.logging.ConsoleHandler.level = INFO

    to

    java.util.logging.ConsoleHandler.level = ALL

  4. Enable logging in the Java Console or Java Preferences. To do so:
    • In Windows, in the Java Control Panel, on the Advanced tab, choose Java console, then select Show console.
    • On Mac OS X, for Java 8 (required), access the Java system preference in System Preferences, click Advanced, and under Debugging, click Enable logging. Then, under Java console, select Show console.

  5. Rebuild and start your client.
  6. Click Java and follow the instructions. The Java Console will open and display all logs from the Java Client.

You can view additional debug information about your Java JMS client by enabling tracing. To do so, in your Java JMS client code, import the com.kaazing.gateway.jms.client.util.Tracer package and enable the Tracer.DEBUG method:

...
import com.kaazing.gateway.jms.client.util.Tracer;
Tracer.DEBUG = true;
...

See Also

You have completed the Java client checklist. For more information about the Kaazing Gateway Java JMS client library, see Kaazing Gateway JMS Client Libraries.