Distributed Logging and Tracing for .Net

Discussion in 'Automated Trading' started by nitro, May 30, 2009.

  1. nitro

    nitro

    Does anyone have a recommendation for a library that allows a distributed application logging and tracing, and with a viewer to view the logging in realtime. Being able to sort messages by machine etc on the viewer would be nice, etc?

    For .Net 2.x or later.

    I am using the Enterprise Library 2.0 Logging Application Block

    http://codebetter.com/blogs/david.hayden/archive/2006/02/19/138644.aspx

    but AFAIK, this doesn't work very well in a distributed environment.

    The less intrusive on the code the better, so that my code looks the same (with maybe a decorator to the class) so that exceptions, debug/trace are automatically logged to the distributed logging system.
     
  2. Use Log4Net and their SQL database appender. Then you can use SQL to get the info you need. Just a suggestion.
     
  3. nitro

    nitro

    Thanks. That's not a bad idea. To see it in realtime you would probably go one further and use triggers.

    I couldn't believe there was nothing like this, so I wrote a very quick server that different clients can send (multicast) debug/ trace information to. The right way to do it is to use system.diagnostics and override the trace functions. That way when you are in the debugger, your code will send information to it, and during runtime ("release"), to this scheme that I describe above. For now this is ok.
     
  4. nitro

    nitro

  5. rosy2

    rosy2

    i log to a messaging queue using a log4net appender. but the log viewing is just a web page. i havent seen anything worth buying
     
  6. Big

    Big

    For the most scalable distributed logging, I would use the Enterprise Library but with an MSMQ (Microsoft Message Queuing) trace listener, and I would then get a process to handle items arriving on that queue.
    MQs can handle redundancy, mirroring, filtering, persistance and are the most scalable technology to date in my opinion.
     
  7. nitro

    nitro

    Another good idea. For those that are lost,

    http://www.15seconds.com/Issue/020910.htm
     
  8. nitro

    nitro

    Thanks.

    Yeah, appenders to log4net seem to be a popular idea.
     
  9. Another log4net user here...