<?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>Adding Trace to a .NET application and listening to it</title><link>http://blogs.msdn.com/abhinaba/archive/2007/06/07/adding-trace-to-a-net-application-and-listening-to-it.aspx</link><description>Just yesterday I was chatting with a friend and he was telling me how they are writing a thread-safe logging library for their .NET app. I was astonished to find out that they were completely unaware of the awesome trace library in .NET. So this post</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>re: Adding Trace to a .NET application and listening to it</title><link>http://blogs.msdn.com/abhinaba/archive/2007/06/07/adding-trace-to-a-net-application-and-listening-to-it.aspx#3134418</link><pubDate>Thu, 07 Jun 2007 09:34:59 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:3134418</guid><dc:creator>alikl</dc:creator><description>&lt;p&gt;Great post!&lt;/p&gt;
&lt;p&gt;If the app they are doing is ASP.NET 2.0 then HealthMonitoring that ships with ASP.NET 2.0 is thier friend, i've noticed that folks overlook it too&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://blogs.msdn.com/alikl/archive/2007/05/02/asp-net-health-monitoring-means-logging-and-auditing.aspx"&gt;http://blogs.msdn.com/alikl/archive/2007/05/02/asp-net-health-monitoring-means-logging-and-auditing.aspx&lt;/a&gt; &lt;/p&gt;
&lt;p&gt;alikl&lt;/p&gt;
</description></item><item><title>Using Trace-Points in Visual Studio</title><link>http://blogs.msdn.com/abhinaba/archive/2007/06/07/adding-trace-to-a-net-application-and-listening-to-it.aspx#3439047</link><pubDate>Thu, 21 Jun 2007 09:18:06 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:3439047</guid><dc:creator>I know the answer (it's 42)</dc:creator><description>&lt;p&gt;Even though everyone knows about break-points, trace points seem to have been used way less. Developers&lt;/p&gt;
</description></item><item><title>re: Adding Trace to a .NET application and listening to it</title><link>http://blogs.msdn.com/abhinaba/archive/2007/06/07/adding-trace-to-a-net-application-and-listening-to-it.aspx#4039684</link><pubDate>Wed, 25 Jul 2007 11:11:41 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:4039684</guid><dc:creator>Mazdak</dc:creator><description>&lt;p&gt;Hello Sir, I have a problem with Trace, When I put my Trace wrapper class in a seprate dll, it can not read app.config of exe file which run it. any idea? &lt;/p&gt;
&lt;p&gt;Thanks for your help&lt;/p&gt;
</description></item><item><title>re: Adding Trace to a .NET application and listening to it</title><link>http://blogs.msdn.com/abhinaba/archive/2007/06/07/adding-trace-to-a-net-application-and-listening-to-it.aspx#4074655</link><pubDate>Fri, 27 Jul 2007 07:34:45 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:4074655</guid><dc:creator>abhinaba</dc:creator><description>&lt;p&gt;I'm not too sure about the app.config issue, but there is an easy workaround. Use some static (be careful to handle multi-threading) member to set the level from your exe.&lt;/p&gt;
</description></item><item><title>re: Adding Trace to a .NET application and listening to it</title><link>http://blogs.msdn.com/abhinaba/archive/2007/06/07/adding-trace-to-a-net-application-and-listening-to-it.aspx#4458569</link><pubDate>Sun, 19 Aug 2007 07:41:43 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:4458569</guid><dc:creator>William Bloodworth</dc:creator><description>&lt;p&gt;It would be much more efficient to move the 'if' statement from the inner Error/Info methods to the outer Error/Info methods. &amp;nbsp;If the inner condition is false, then there was no need to make the call in the first place and as such, no call to String.Format either.&lt;/p&gt;
</description></item><item><title>myspace funny comments graphics</title><link>http://blogs.msdn.com/abhinaba/archive/2007/06/07/adding-trace-to-a-net-application-and-listening-to-it.aspx#4967790</link><pubDate>Tue, 18 Sep 2007 04:43:49 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:4967790</guid><dc:creator>myspace funny comments graphics</dc:creator><description>&lt;p&gt;myspace funny comments graphics&lt;/p&gt;
</description></item><item><title>re: Adding Trace to a .NET application and listening to it</title><link>http://blogs.msdn.com/abhinaba/archive/2007/06/07/adding-trace-to-a-net-application-and-listening-to-it.aspx#5053574</link><pubDate>Sat, 22 Sep 2007 14:22:45 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:5053574</guid><dc:creator>Sarath chandra </dc:creator><description>&lt;p&gt;Cant we simply use Log4Net ????&lt;/p&gt;
</description></item><item><title>re: Adding Trace to a .NET application and listening to it</title><link>http://blogs.msdn.com/abhinaba/archive/2007/06/07/adding-trace-to-a-net-application-and-listening-to-it.aspx#5192071</link><pubDate>Fri, 28 Sep 2007 23:10:51 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:5192071</guid><dc:creator>Sreedhar Vankayala</dc:creator><description>&lt;p&gt;Log4net is cool! hopefully they will come up with new version using Orcas ...&lt;/p&gt;
</description></item><item><title>re: Adding Trace to a .NET application and listening to it</title><link>http://blogs.msdn.com/abhinaba/archive/2007/06/07/adding-trace-to-a-net-application-and-listening-to-it.aspx#6944879</link><pubDate>Wed, 02 Jan 2008 03:29:25 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:6944879</guid><dc:creator>Navid Azimi</dc:creator><description>&lt;p&gt;There is actually no need for the overloaded methods. If you use params as an argument, you can pass zero arguments as well.&lt;/p&gt;
&lt;p&gt;This means you can remove two of the four methods and, thereby, also resolving the issue with the string.Format() being called unnecessarily if tracing is set to false.&lt;/p&gt;
</description></item><item><title>re: Adding Trace to a .NET application and listening to it</title><link>http://blogs.msdn.com/abhinaba/archive/2007/06/07/adding-trace-to-a-net-application-and-listening-to-it.aspx#6947389</link><pubDate>Wed, 02 Jan 2008 06:53:04 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:6947389</guid><dc:creator>abhinaba</dc:creator><description>&lt;p&gt;Using params indiscriminately is a bad idea as it reduces readability for the user. E.g. if I have a params, how do I convery that the first is the format string and then others are the args to it. Why do you think the BCL defines such overloads instead of using params.&lt;/p&gt;
&lt;p&gt;The perf implication is trivial in front of the readability benefits. If perf is important build with the conditional attribute off and C# compiler will NOP all calls to the TRACE methods&lt;/p&gt;
</description></item><item><title>re: Adding Trace to a .NET application and listening to it</title><link>http://blogs.msdn.com/abhinaba/archive/2007/06/07/adding-trace-to-a-net-application-and-listening-to-it.aspx#9141362</link><pubDate>Tue, 25 Nov 2008 13:01:23 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9141362</guid><dc:creator>namadev</dc:creator><description>&lt;p&gt;Error	4	The name 'Thread' does not exist in the current context	C:\Documents and Settings\ic011057\My Documents\Visual Studio 2008\Projects\ConsoleApplication4\ConsoleApplication4\Class1.cs	52&lt;/p&gt;
&lt;p&gt;Error	2	The name 'CultureInfo' does not exist in the current context	C:\Documents and Settings\ic011057\My Documents\Visual Studio 2008\Projects\ConsoleApplication4\ConsoleApplication4\Class1.cs	27&lt;/p&gt;
&lt;p&gt;these are errors i am getting &lt;/p&gt;
</description></item></channel></rss>