Contents tagged with Trace
-
Configuration, System.Diagnostics and Medium Trust
In the past, I have widely used, and been a fan of, TextWriterTraceListener and EventLogTraceListener configured via the web.config in order to output diagnostics information from a web app or site. These things have been there since .Net 1, so our main library of code has hooks into System.Diagnostics. We even implemented a messaging aspect to this so that certain critical errors would trigger an SMTP message to us. This has been invaluable in determining what is happening with a site as content changes, or something happens that we need to take action on before a complaint comes in. (Who am I kidding – this is how we find out about bugs that got missed for whatever reason).