Book Image

SignalR Blueprints

By : Einar Ingerbrigsten
Book Image

SignalR Blueprints

By: Einar Ingerbrigsten

Overview of this book

Table of Contents (18 chapters)
SignalR Blueprints
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
9
Debugging or Troubleshooting
Index

Logging


Perhaps, one of the most efficient debugging tools is logging; just get the text out that says what is going on in your system. SignalR has a great support for this in all tiers.

Server

You simply enable logging on the server by adding configuration to the application configuration file (App.config or Web.config) depending on the project type. In the configuration, you specify what events you are interested in seeing. You can also specify where you want it to log to, such as a text file, the Windows event log or a custom log, using an implementation of TraceListener. The following table shows what trace sources are available and a description of what they represent:

Source

Messages

SignalR.SqlMessageBus

This scales out the setup, database operation, error, and timeout events

SignalR.ServiceBusMessageBus

This scales out provider topic creation and subscription, error, and messaging events

SignalR.RedisMessageBus

This scales out provider connection, disconnection, and error...