Display Logs for the JavaScript Client

You can display logs for the Javascript client by pointing to the relevant *-debug.js file located in the Kaazing JavaScript SDK available at kaazing.com/download.

Before You Begin

This procedure is part of Checklist: Build JavaScript Clients.

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

To Enable the JavaScript Client Logs

  1. Build your Kaazing JavaScript client, as described in Checklist: Build JavaScript Clients Using Kaazing Gateway.
  2. Edit the client HTML page containing the JavaScript to use the appropriate *-debug.js file. For example, if you are using WebSocket, change:

    <script src="WebSocket.js"></script>

    to

    <script src="WebSocket-debug.js"></script>

  3. Configure the logging level by adding a META tag called kaazing:logging, which specifies the package regular expressions and the log level for them. For example:

    <meta name="kaazing:logging" content="com.kaazing.gateway.*=ALL" />

  4. Navigate to your browser's console (such as Firebug for Firefox, or Developer Tools for Google Chrome, Safari, or Microsoft Internet Explorer 8).

    Browser Steps to Access the Console
    Mozilla Firefox

    1. Download and install Firebug.

    2. Restart Firefox.

    3. See How do I open Firebug? from Mozilla for information on starting Firebug on your OS.

    Google Chrome See Opening DevTools from Google for information on opening the Console.
    Safari 5 See Using the Error Console from Apple for more information.
    IE 8

    Press F12 or choose Tools > Developer Tools. For more information, see How to use F12 Developer Tools to Debug your Webpages from Microsoft.

  5. Visit the page running the client code. You should now see log messages in the console.

See Also

To learn how to build clients using the Kaazing client libraries, see the Kaazing client developer documentation in the For Developer's section of the documentation page.