Simon Mourier's Samples Site
 .Net Projects

  SkedView
   BizTalk viewer

  Visual SourceSafe
   Web Explorer and
   Web Service

  ActiveX Scripting
   WebPart for
   SharePoint

  .Zip IHttpHandler

  Html Agility Pack
  Trace Server


 Links

  My Main WebLog
 
05/29/2003: Trace Server. DOWNLOAD AVAILABLE!
This tool (available with source) provides the following:
  • TraceServerLibrary: a .Net assembly that is the heart of the 4 following applications. It also provide a standard .Net trace listener.

  • TraceServerClient: a WinForm GUI application that displays gathered traces from various Trace Server.

  • TraceServerClientConsole: a console application that displays gathered traces from various Trace Server.

  • TraceServerConsole: a TCP socket server. TraceServerClient connects to the TraceServerConsole or TraceServerService.

  • TraceServerService: the Windows Service version of TraceServerConsole.
Here is a small figure that explains how it works:



It works with any existing .Net application that uses standard .Net Tracing. You just need to add the library in the application base directory (/bin in ASP.Net applications for example) and to configure the .config file to add the Trace Server listener.

When the .Net app traces stuff, these traces are multicast using UDP locally on the machine. If the TraceServer is present (in any flavor: the console or the service one), it receives these UDP traces and forwards it to any connected client.

A TraceServer client can connect to any number of Trace Servers. A Trace Server can have a fixed number of connected client. By default, there is a limit of 64 clients.



Download the source here