-
Book Overview & Buying
-
Table Of Contents
SignalR: Real-time Application Development - Second Edition
By :
Perhaps one of the most efficient debugging tools is logging; just get the text out that says what is going on in your system. Logging is the age-old technique of putting in code that writes out text to know what the system is doing. SignalR has a great support for this in all tiers.
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 |
|---|---|
|
|
This scales out the setup, database operation, error, and timeout events |
|
|
This scales out provider topic creation and... |