Display Logs for .NET and Silverlight Clients

You can configure logging to gather data on your .NET and Silverlight clients.

Before You Begin

This procedure is part of Checklist: Build Microsoft .NET and Silverlight Clients Using Kaazing WebSocket Gateway:

  1. Set Up Your Development Environment
  2. Interact with Kaazing WebSocket Gateway Using the WebSocket API
  3. Interact with Kaazing WebSocket Gateway Using the EventSource API
  4. Interact with Kaazing WebSocket Gateway Using the ByteSocket API
  5. Configure Automatic Connection
  6. Secure Your Microsoft .NET and Silverlight Client
  7. Display Logs for .NET and Silverlight Clients
  8. Troubleshoot Your Microsoft .NET and Silverlight Clients

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

To Display Logs for .NET and Silverlight Clients

  1. Build your Kaazing .NET or Silverlight client, as described in Checklist: Build Microsoft .NET and Silverlight Clients Using Kaazing WebSocket Gateway.
  2. To produce WebSocket-level debug output, add the Debug version of the client library (Kaazing.Gateway.dll), located in GATEWAY_HOME/lib/client/dotnet/Debug.
  3. You can obtain additional debugging information by using a Logger.LoggerCallback statement and send the output to a log, as described in the following example:
            Logger.LoggerCallback = HandleLog;
                 private void HandleLog(String message)
                 {
                      this.BeginInvoke((InvokeDelegate)(() =>
                      {
                           Log("LOG: " + message);
                      }));
                 }

Next Step

Troubleshoot Your Microsoft .NET and Silverlight Clients

See Also

.NET and Silverlight Client API

TOP