Skip to content

Instantly share code, notes, and snippets.

@moozzyk
Last active April 9, 2018 23:44
Show Gist options
  • Save moozzyk/5abdc2ff439c179832e143c6a72a3e0a to your computer and use it in GitHub Desktop.
Save moozzyk/5abdc2ff439c179832e143c6a72a3e0a to your computer and use it in GitHub Desktop.
SignalR Server tracing config
<!--
[‎5/‎19/‎2017 12:05 PM]
Here is config the has all trace sources:
-->
  <system.diagnostics>
    <sources> 
  <source name="SignalR.MessageBus">
        <listeners>
          <add name="SignalR-Bus" />
        </listeners>
      </source>
  <source name="SignalR.ScaleoutSubscription">
        <listeners>
          <add name="SignalR-Bus" />
        </listeners>
      </source>
      <source name="SignalR.SqlMessageBus">
        <listeners>
          <add name="SignalR-Bus" />
        </listeners>
      </source>
      <source name="SignalR.ServiceBusMessageBus">
        <listeners>
          <add name="SignalR-Bus" />
        </listeners>
      </source>
      <source name="SignalR.RedisMessageBus">
        <listeners>
          <add name="SignalR-Bus" />
        </listeners>
      </source>
      <source name="SignalR.RedisConnection">
        <listeners>
          <add name="SignalR-Bus" />
        </listeners>
      </source>
      <source name="SignalR.ScaleoutMessageBus">
        <listeners>
          <add name="SignalR-Bus" />
        </listeners>
      </source>
      <source name="SignalR.Transports.WebSocketTransport">
        <listeners>
          <add name="SignalR-Transports" />
        </listeners>
      </source>     
      <source name="SignalR.Transports.ServerSentEventsTransport">
        <listeners>
          <add name="SignalR-Transports" />
        </listeners>
      </source>
      <source name="SignalR.Transports.ForeverFrameTransport">
        <listeners>
          <add name="SignalR-Transports" />
        </listeners>
      </source>
      <source name="SignalR.Transports.LongPollingTransport">
        <listeners>
          <add name="SignalR-Transports" />
        </listeners>
      </source>
      <source name="SignalR.Transports.TransportHeartBeat">
        <listeners>
          <add name="SignalR-Transports" />
        </listeners>
      </source>
      <source name="SignalR.ReflectedHubDescriptorProvider">
        <listeners>
          <add name="SignalR-Init" />
        </listeners>
      </source>
<source name="SignalR.PerformanceCounterManager">
        <listeners>
          <add name="SignalR-Misc" />
        </listeners>
      </source>
<source name="SignalR.Connection">
        <listeners>
          <add name="SignalR-Connection" />
        </listeners>
      </source>
<source name="SignalR.PersistentConnection">
        <listeners>
          <add name="SignalR-Connection" />
        </listeners>
      </source>
<source name="SignalR.HubDispatcher">
        <listeners>
          <add name="SignalR-Connection" />
        </listeners>
      </source>
    </sources>
    <switches>
      <add name="SignalRSwitch" value="Verbose" />
    </switches>
      <sharedListeners>
        <add name="SignalR-Transports" type="System.Diagnostics.EventLogTraceListener" initializeData="SignalRScaleoutLog" />
        <add name="SignalR-Bus" type="System.Diagnostics.EventLogTraceListener" initializeData="SignalRTransportLog" />
        <add name="SignalR-Init" type="System.Diagnostics.EventLogTraceListener" initializeData="SignalRInitLog" />
<add name="SignalR-Misc" type="System.Diagnostics.EventLogTraceListener" initializeData="SignalRMiscLog" />
<add name="SignalR-Connection" type="System.Diagnostics.EventLogTraceListener" initializeData="SignalRConnectionLog" />
      </sharedListeners>
      <trace autoflush="true" />
  </system.diagnostics> 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment