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:
- Set Up Your Development Environment
- Interact with Kaazing WebSocket Gateway Using the WebSocket API
- Interact with Kaazing WebSocket Gateway Using the EventSource API
- Interact with Kaazing WebSocket Gateway Using the ByteSocket API
- Configure Automatic Connection
- Secure Your Microsoft .NET and Silverlight Client
- Display Logs for .NET and Silverlight Clients
- 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
- Build your Kaazing .NET or Silverlight client, as described in Checklist: Build Microsoft .NET and Silverlight Clients Using Kaazing WebSocket Gateway.
- 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.
- 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