<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>A Tracing Primer - Part I [Mike Rousos]</title><link>http://blogs.msdn.com/bclteam/archive/2005/03/15/396431.aspx</link><description>One of the changes in Whidbey will be a revamped tracing system. Much is unchanged - tracing messages are sent through switches to listeners where the data is reported in some fashion. One of the main differences is the inclusion of the TraceSource type.</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>re: A Tracing Primer - Part I [Mike Rousos]</title><link>http://blogs.msdn.com/bclteam/archive/2005/03/15/396431.aspx#396498</link><pubDate>Wed, 16 Mar 2005 06:25:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:396498</guid><dc:creator>Kathleen Dollard</dc:creator><description>Very cool that you posted this. It's one of the biggest sleepers in 2005. &lt;br&gt;&lt;br&gt;For anyone who's going to be at DevConnections next week, this is a large part of my Preparing Code for Easier Debugging talk. Or if you're in an INETA user group I can talk about why the new tracing approach changes everything (meaning, you'll actualy start using tracing techniques). I don't mean to sound like a commercial here, it's just that this aspect of 2005 is so very, very cool and almost no one has been talking about it.</description></item><item><title>re: A Tracing Primer - Part I [Mike Rousos]</title><link>http://blogs.msdn.com/bclteam/archive/2005/03/15/396431.aspx#396808</link><pubDate>Wed, 16 Mar 2005 19:07:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:396808</guid><dc:creator>Joshua Flanagan</dc:creator><description>One thing I find lacking in the current (1.1) Trace listeners, and apparently the new listeners, is the ability to include a timestamp with every message.  I always end up creating a static Utility class with this method:&lt;br&gt;&lt;br&gt;public static void Trace(string message){&lt;br&gt;   System.Diagnostics.Trace.WriteLine(DateTime.Now.ToString(&amp;quot;s&amp;quot;) +&amp;quot; &amp;quot;+ message);&lt;br&gt;}&lt;br&gt;&lt;br&gt;I'm surprised this isn't a more commonly requested feature.  Am I using Tracing incorrectly because I want time information?</description></item><item><title>re: A Tracing Primer - Part I [Mike Rousos]</title><link>http://blogs.msdn.com/bclteam/archive/2005/03/15/396431.aspx#396811</link><pubDate>Wed, 16 Mar 2005 19:14:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:396811</guid><dc:creator>Mike Rousos</dc:creator><description>Joshua,&lt;br&gt;  This is supported in Whidbey! I was waiting to introduce the trace output options property on listeners until my next post because this post was already pretty long, but you can specify options on a listener that will change what gets recorded. One of the options is timestamp. When this is selected, a timestamp will show up in every trace. The complete list of options are:&lt;br&gt; - Timestamp&lt;br&gt; - Date/Time&lt;br&gt; - Callstack&lt;br&gt; - Logical Operations Stack&lt;br&gt; - Process ID&lt;br&gt; - Thread ID</description></item><item><title>re: A Tracing Primer - Part I [Mike Rousos]</title><link>http://blogs.msdn.com/bclteam/archive/2005/03/15/396431.aspx#396882</link><pubDate>Wed, 16 Mar 2005 20:33:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:396882</guid><dc:creator>Kevin Dente</dc:creator><description>Mike,&lt;br&gt;Thanks for the info - this is an area of Whidbey where documentation has been sorely lacking. Here's a couple of follow up questions:&lt;br&gt;&lt;br&gt;1) Is there any way to specify the format in which trace messages are logged (if you're familiar with Log4Net, the equivalent is the Layout concept)? &lt;br&gt;&lt;br&gt;2) Is trace configuration updated dynamically when the config file changes, without application restart? This is critically important for server applications.&lt;br&gt;</description></item><item><title>re: A Tracing Primer - Part I [Mike Rousos]</title><link>http://blogs.msdn.com/bclteam/archive/2005/03/15/396431.aspx#396895</link><pubDate>Wed, 16 Mar 2005 20:41:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:396895</guid><dc:creator>Mike Rousos [Msft]</dc:creator><description>Kevin,&lt;br&gt;&lt;br&gt;Thanks for the questions.&lt;br&gt;1) Unfortunately, I'mnot familiar with Log4Net. There really isn't anyway to format the existing listners, though. The TextWriterTraceListener will always output things in this format - Source EvetnType: ID: Message OutputOptions.&lt;br&gt;&lt;br&gt;That said, a user can implement their own custom listener and have complete control over the output. It's really a pretty easy exercise to do this. I'll be sure to post a blog entry about it sometime in the next week or two.&lt;br&gt;&lt;br&gt;2) Changing a config file does not automatically update the tracing setup. However, there is a static method - Trace.Refresh() that will do this. It reloads the config file and updates the tracing setup. Two ways of using this would be to include a command an admin can call on the app to invoke this method or to use a File System Watcher to watch for changes to the config file (I've used this method before). Then, if the config file changes, we fire Trace.Refresh() so that we can update the tracing configuration without restarting the app.</description></item><item><title>re: A Tracing Primer - Part I [Mike Rousos]</title><link>http://blogs.msdn.com/bclteam/archive/2005/03/15/396431.aspx#398042</link><pubDate>Thu, 17 Mar 2005 20:30:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:398042</guid><dc:creator>Kevin Dente</dc:creator><description>Mike,&lt;br&gt;Thanks for the answers. Trace.Refresh coupled with a FileSystemWatcher sounds like it would do the job quite nicely. &lt;br&gt;&lt;br&gt;Bummer about trace formatting (I don't like how including some of that optional info like logical operation splits the log message into multiple lines, for example), but it sounds like it's possible to hack together a solution that might work. </description></item><item><title>Tips </title><link>http://blogs.msdn.com/bclteam/archive/2005/03/15/396431.aspx#398182</link><pubDate>Thu, 17 Mar 2005 22:16:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:398182</guid><dc:creator>David Boschmans' Weblog</dc:creator><description>Tips </description></item><item><title>re: A Tracing Primer - Part I [Mike Rousos]</title><link>http://blogs.msdn.com/bclteam/archive/2005/03/15/396431.aspx#398236</link><pubDate>Fri, 18 Mar 2005 00:15:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:398236</guid><dc:creator>Tonci Korsano</dc:creator><description>Just great!!&lt;br&gt;I needed to understand the following:&lt;br&gt;&amp;lt;system.diagnostics&amp;gt;&lt;br&gt;&amp;lt;switches&amp;gt;&lt;br&gt;  &amp;lt;add name=&amp;quot;MySource&amp;quot; value=&amp;quot;Verbose&amp;quot;/&amp;gt;&lt;br&gt;&amp;lt;/switches&amp;gt;&lt;br&gt;&lt;br&gt;&amp;lt;sources&amp;gt;&lt;br&gt;	&amp;lt;source name=&amp;quot;MySource&amp;quot;&amp;gt;&lt;br&gt;		&amp;lt;listeners&amp;gt;&lt;br&gt;		&amp;lt;add name=&amp;quot;examplelog&amp;quot; type=&amp;quot;System.Diagnostics.TextWriterTraceListener&amp;quot; initializeData=&amp;quot;example.log&amp;quot;/&amp;gt;&lt;br&gt;		&amp;lt;add name=&amp;quot;allfile&amp;quot; type=&amp;quot;System.Diagnostics.TextWriterTraceListener&amp;quot; initializeData=&amp;quot;all.log&amp;quot; TraceOutputOptions=&amp;quot;Timestamp, CorrelationId&amp;quot; /&amp;gt;&lt;br&gt;		&amp;lt;/listeners&amp;gt;&lt;br&gt;	&amp;lt;/source&amp;gt;&lt;br&gt;&amp;lt;/sources&amp;gt;&lt;br&gt;&lt;br&gt;&amp;lt;/system.diagnostics&amp;gt;&lt;br&gt;&lt;br&gt;which obviously coms from an app.config file.&lt;br&gt;I am running this on Whidbey, and this program basically writes all activity of a game called Space Invaders :o)&lt;br&gt;Before this, I have logged info and errors in your typical Event Log.&lt;br&gt;&lt;br&gt;Thank you again,&lt;br&gt;&lt;br&gt;Tonchi.&lt;br&gt;&amp;quot;What you think doesn't matter. What matters is evidence!&amp;quot;</description></item><item><title>Tips </title><link>http://blogs.msdn.com/bclteam/archive/2005/03/15/396431.aspx#399845</link><pubDate>Mon, 21 Mar 2005 19:37:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:399845</guid><dc:creator>Ido Samuelson</dc:creator><description>Tips </description></item><item><title>re: A Tracing Primer - Part I [Mike Rousos]</title><link>http://blogs.msdn.com/bclteam/archive/2005/03/15/396431.aspx#403415</link><pubDate>Wed, 30 Mar 2005 14:04:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:403415</guid><dc:creator>Jaroslaw Kowalski</dc:creator><description>For an easy-to-use tracing tool visit the NLog page at &lt;a target="_new" href="http://nlog.sourceforge.net/"&gt;http://nlog.sourceforge.net/&lt;/a&gt;&lt;br&gt;&lt;br&gt;It has most of the features you expect from a logging tool (layouts, configurable log routing, high speed, log filtering, live configuration updates and many more) and it comes with full source code.&lt;br&gt;&lt;br&gt;I'll be publishing some NLog-ging tips in my blog at &lt;a target="_new" href="http://blog.jkowalski.net/"&gt;http://blog.jkowalski.net/&lt;/a&gt;&lt;br&gt;&lt;br&gt;Jarek</description></item><item><title>Logging and tracing</title><link>http://blogs.msdn.com/bclteam/archive/2005/03/15/396431.aspx#662794</link><pubDate>Wed, 12 Jul 2006 02:00:33 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:662794</guid><dc:creator>CallContext</dc:creator><description>I didn't know what I was missing until I got into log4net, and now I use it everywhere. I just feel naked without putting logging into classes. It's saved my life several times over.</description></item><item><title>.NET 2.0 Tracing</title><link>http://blogs.msdn.com/bclteam/archive/2005/03/15/396431.aspx#735098</link><pubDate>Fri, 01 Sep 2006 13:46:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:735098</guid><dc:creator>SoftwareArquitecto</dc:creator><description>&amp;amp;#191;Sigues escribiendo Trace.WriteLine(&amp;amp;quot;...&amp;amp;quot;) en tu c&amp;amp;#243;digo de .NET 2.0? &amp;amp;#191;Sigues escribiendo cosas como esta...</description></item><item><title>Trace sources in WPF</title><link>http://blogs.msdn.com/bclteam/archive/2005/03/15/396431.aspx#754236</link><pubDate>Thu, 14 Sep 2006 19:31:27 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:754236</guid><dc:creator>Mike Hillberg's Blog on WPF (Avalon)</dc:creator><description>WPF (Avalon) uses the .Net tracing system to provide some diagnostics about what’s going on inside your WPF application. &amp;nbsp;It’s not at all an exhaustive set of traces, and in fact it’s still pretty rudimentary. &amp;nbsp;But frequently it’s enough to help out when</description></item><item><title>Trace sources in WPF</title><link>http://blogs.msdn.com/bclteam/archive/2005/03/15/396431.aspx#756374</link><pubDate>Fri, 15 Sep 2006 22:14:14 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:756374</guid><dc:creator>Mike Hillberg's Blog on WPF (Avalon)</dc:creator><description>WPF (Avalon) uses the .Net tracing system to provide some diagnostics about what’s going on inside your WPF application. &amp;nbsp;It’s not at all an exhaustive set of traces, and in fact it’s still pretty rudimentary. &amp;nbsp;But frequently it’s enough to help out when</description></item><item><title>softwarearquitecto.com &amp;raquo; .NET 2.0 Tracing</title><link>http://blogs.msdn.com/bclteam/archive/2005/03/15/396431.aspx#1778034</link><pubDate>Thu, 01 Mar 2007 12:26:19 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1778034</guid><dc:creator>softwarearquitecto.com » .NET 2.0 Tracing</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://softwarearquitecto.com/blog/?p=6"&gt;http://softwarearquitecto.com/blog/?p=6&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>Logging Application Block Intro (Tracing Primer)</title><link>http://blogs.msdn.com/bclteam/archive/2005/03/15/396431.aspx#1891413</link><pubDate>Fri, 16 Mar 2007 05:57:03 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1891413</guid><dc:creator>Humprey Evangelista Cogay</dc:creator><description>&lt;p&gt;We have an applciation (Bought from another company) that has a very good logging system, and during&lt;/p&gt;
</description></item><item><title>links for 2007-08-29 &amp;laquo; dstelow notes&amp;#8230;</title><link>http://blogs.msdn.com/bclteam/archive/2005/03/15/396431.aspx#4636594</link><pubDate>Thu, 30 Aug 2007 03:01:39 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:4636594</guid><dc:creator>links for 2007-08-29 « dstelow notes…</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://dstelow.wordpress.com/2007/08/29/links-for-2007-08-29/"&gt;http://dstelow.wordpress.com/2007/08/29/links-for-2007-08-29/&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>Jednoduchý exception logging pomocí Trace/TraceSource a mechanizmů .NET</title><link>http://blogs.msdn.com/bclteam/archive/2005/03/15/396431.aspx#7358760</link><pubDate>Fri, 01 Feb 2008 00:14:10 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7358760</guid><dc:creator>.NET Framework</dc:creator><description>&lt;p&gt;Pokud se sh&amp;#225;n&amp;#237;te po jednoduch&amp;#233;m mechanizmu, jak ve Vašich aplikac&amp;#237;ch logovat v&amp;#253;jimky, pak zřejmě v .NET&lt;/p&gt;
</description></item><item><title>Jednoduchý exception logging pomocí Trace/TraceSource mechanizmů .NET</title><link>http://blogs.msdn.com/bclteam/archive/2005/03/15/396431.aspx#7358821</link><pubDate>Fri, 01 Feb 2008 00:17:21 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7358821</guid><dc:creator>.NET Framework</dc:creator><description>&lt;p&gt;Pokud se sh&amp;#225;n&amp;#237;te po jednoduch&amp;#233;m mechanizmu, jak ve Vašich aplikac&amp;#237;ch logovat v&amp;#253;jimky, pak zřejmě v .NET&lt;/p&gt;
</description></item><item><title>   ????????????.Net Trace API &amp;middot; IT Farmer?????????</title><link>http://blogs.msdn.com/bclteam/archive/2005/03/15/396431.aspx#8143124</link><pubDate>Tue, 11 Mar 2008 06:06:33 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8143124</guid><dc:creator>   ????????????.Net Trace API · IT Farmer?????????</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://www.it-farmer.com/how-to-use-net-trace-api.html"&gt;http://www.it-farmer.com/how-to-use-net-trace-api.html&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>Rividian Consulting  &amp;raquo; Blog Archive   &amp;raquo; Turning On Tracing and Debugging in .Net Web App</title><link>http://blogs.msdn.com/bclteam/archive/2005/03/15/396431.aspx#8968249</link><pubDate>Mon, 29 Sep 2008 01:46:52 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8968249</guid><dc:creator>Rividian Consulting  &amp;raquo; Blog Archive   &amp;raquo; Turning On Tracing and Debugging in .Net Web App</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://www.rividian.com/blog/2008/09/28/turning-on-tracing-and-debugging-in-net-web-app/"&gt;http://www.rividian.com/blog/2008/09/28/turning-on-tracing-and-debugging-in-net-web-app/&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>Writing to the Debug Window | keyongtech</title><link>http://blogs.msdn.com/bclteam/archive/2005/03/15/396431.aspx#9364627</link><pubDate>Thu, 22 Jan 2009 11:09:19 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9364627</guid><dc:creator>Writing to the Debug Window | keyongtech</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://www.keyongtech.com/2390820-writing-to-the-debug-window"&gt;http://www.keyongtech.com/2390820-writing-to-the-debug-window&lt;/a&gt;&lt;/p&gt;
</description></item><item><title> BCL Team Blog A Tracing Primer Part I Mike Rousos | Quick Diets</title><link>http://blogs.msdn.com/bclteam/archive/2005/03/15/396431.aspx#9715035</link><pubDate>Tue, 09 Jun 2009 14:05:52 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9715035</guid><dc:creator> BCL Team Blog A Tracing Primer Part I Mike Rousos | Quick Diets</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://quickdietsite.info/story.php?id=3668"&gt;http://quickdietsite.info/story.php?id=3668&lt;/a&gt;&lt;/p&gt;
</description></item><item><title> BCL Team Blog A Tracing Primer Part I Mike Rousos | Insomnia Cure</title><link>http://blogs.msdn.com/bclteam/archive/2005/03/15/396431.aspx#9719745</link><pubDate>Wed, 10 Jun 2009 03:48:33 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9719745</guid><dc:creator> BCL Team Blog A Tracing Primer Part I Mike Rousos | Insomnia Cure</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://insomniacuresite.info/story.php?id=4620"&gt;http://insomniacuresite.info/story.php?id=4620&lt;/a&gt;&lt;/p&gt;
</description></item><item><title> BCL Team Blog A Tracing Primer Part I Mike Rousos | alternative dating</title><link>http://blogs.msdn.com/bclteam/archive/2005/03/15/396431.aspx#9768355</link><pubDate>Wed, 17 Jun 2009 10:51:47 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9768355</guid><dc:creator> BCL Team Blog A Tracing Primer Part I Mike Rousos | alternative dating</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://topalternativedating.info/story.php?id=11492"&gt;http://topalternativedating.info/story.php?id=11492&lt;/a&gt;&lt;/p&gt;
</description></item></channel></rss>