A while ago, I had a piece of XML you put in the application config file which made .net write all exceptions and traces into a log file, without any modifications to the code. (i.e. I didn't have any trace listeners or manual log files)

I cannot for the life of me find this anymore. Does anyone know how to do it or where I can find it. Google searches only bring up how to create trace listeners, which is not what I want.

Thanks for any assistance you can give.

Thank you for the links, however, this is not what I'm looking for.

The method was to add something (and it was quite large if I recall) to the application's configuration file (MyApp.exe.config)

It would print out a full trace for any and all exceptions, handled or not.

All I can find is how to add trace listeners (which listen for the Trace.Write events etc.) but the API I'm using doesn't use Tracing.

This article has been dead for over six months. Start a new discussion instead.