Chris Johnson <(E-Mail Removed)> wrote:
> Just a quick question as I'm not entirely certain what phrase to google for
> as all attempts so far have failed to illicit anything useful, and the best
> anaology I can think of comes from hardware :-)
>
> I'm curious as to whether there's some form of API in .NET that's the
> software equivalent of diagnostic pins on a circuit board? Essentially I'm
> want to have a bucket I can throw diagnostic message into in a
> fire-and-forget method, and not care whether there's something looking at
> the bucket (connected to the pin) or not. If nothing's listening, the
> message gets forgotten about.
Sounds like you want a logging framework.
Personally I like log4net:
http://logging.apache.org/log4net/
It'll be up to you what kind of log sinks you want to use (and you
don't need to make that decision when writing the code which calls into
log4net, of course).
--
Jon Skeet - <(E-Mail Removed)>
http://www.pobox.com/~skeet Blog:
http://www.msmvps.com/jon.skeet
World class .NET training in the UK:
http://iterativetraining.co.uk