Geeks With Blogs
The life and times of this developer... WPF, C#, XML and other stuff January 2012 Entries
Simple Trace from .Net
Hi, it's really handy to be able to add Trace to your .Net application using the System.Diagnostics.Trace class.The only problem is how the heck do you get it to Trace out at runtime?The simple solution is to add this to your app config file... <system.diagnostics> <trace autoflush="true"> <listeners> <clear/> <add name="textwriterListener" type="System.Diagnostics.Te... initializeData="c:\temp\out... traceOutputOptions="ProcessId, DateTime"/> ......

Posted On Tuesday, January 31, 2012 9:54 AM

Copyright © bconlon | Powered by: GeeksWithBlogs.net | Join free