<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>NLog - Advanced .NET Logging</title>
	
	<link>http://nlog-project.org</link>
	<description />
	<lastBuildDate>Tue, 01 Nov 2011 05:15:36 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/nlog" /><feedburner:info uri="nlog" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><feedburner:feedFlare href="http://add.my.yahoo.com/rss?url=http%3A%2F%2Ffeeds.feedburner.com%2Fnlog" src="http://us.i1.yimg.com/us.yimg.com/i/us/my/addtomyyahoo4.gif">Subscribe with My Yahoo!</feedburner:feedFlare><feedburner:feedFlare href="http://www.newsgator.com/ngs/subscriber/subext.aspx?url=http%3A%2F%2Ffeeds.feedburner.com%2Fnlog" src="http://www.newsgator.com/images/ngsub1.gif">Subscribe with NewsGator</feedburner:feedFlare><feedburner:feedFlare href="http://feeds.my.aol.com/add.jsp?url=http%3A%2F%2Ffeeds.feedburner.com%2Fnlog" src="http://o.aolcdn.com/favorites.my.aol.com/webmaster/ffclient/webroot/locale/en-US/images/myAOLButtonSmall.gif">Subscribe with My AOL</feedburner:feedFlare><feedburner:feedFlare href="http://www.bloglines.com/sub/http://feeds.feedburner.com/nlog" src="http://www.bloglines.com/images/sub_modern11.gif">Subscribe with Bloglines</feedburner:feedFlare><feedburner:feedFlare href="http://www.netvibes.com/subscribe.php?url=http%3A%2F%2Ffeeds.feedburner.com%2Fnlog" src="http://www.netvibes.com/img/add2netvibes.gif">Subscribe with Netvibes</feedburner:feedFlare><feedburner:feedFlare href="http://fusion.google.com/add?feedurl=http%3A%2F%2Ffeeds.feedburner.com%2Fnlog" src="http://buttons.googlesyndication.com/fusion/add.gif">Subscribe with Google</feedburner:feedFlare><feedburner:feedFlare href="http://www.pageflakes.com/subscribe.aspx?url=http%3A%2F%2Ffeeds.feedburner.com%2Fnlog" src="http://www.pageflakes.com/ImageFile.ashx?instanceId=Static_4&amp;fileName=ATP_blu_91x17.gif">Subscribe with Pageflakes</feedburner:feedFlare><feedburner:feedFlare href="http://www.plusmo.com/add?url=http%3A%2F%2Ffeeds.feedburner.com%2Fnlog" src="http://plusmo.com/res/graphics/fbplusmo.gif">Subscribe with Plusmo</feedburner:feedFlare><feedburner:feedFlare href="http://www.thefreedictionary.com/_/hp/AddRSS.aspx?http%3A%2F%2Ffeeds.feedburner.com%2Fnlog" src="http://img.tfd.com/hp/addToTheFreeDictionary.gif">Subscribe with The Free Dictionary</feedburner:feedFlare><feedburner:feedFlare href="http://www.bitty.com/manual/?contenttype=rssfeed&amp;contentvalue=http%3A%2F%2Ffeeds.feedburner.com%2Fnlog" src="http://www.bitty.com/img/bittychicklet_91x17.gif">Subscribe with Bitty Browser</feedburner:feedFlare><feedburner:feedFlare href="http://www.live.com/?add=http%3A%2F%2Ffeeds.feedburner.com%2Fnlog" src="http://tkfiles.storage.msn.com/x1piYkpqHC_35nIp1gLE68-wvzLZO8iXl_JMledmJQXP-XTBOLfmQv4zhj4MhcWEJh_GtoBIiAl1Mjh-ndp9k47If7hTaFno0mxW9_i3p_5qQw">Subscribe with Live.com</feedburner:feedFlare><feedburner:feedFlare href="http://mix.excite.eu/add?feedurl=http%3A%2F%2Ffeeds.feedburner.com%2Fnlog" src="http://image.excite.co.uk/mix/addtomix.gif">Subscribe with Excite MIX</feedburner:feedFlare><feedburner:feedFlare href="http://www.webwag.com/wwgthis.php?url=http%3A%2F%2Ffeeds.feedburner.com%2Fnlog" src="http://www.webwag.com/images/wwgthis.gif">Subscribe with Webwag</feedburner:feedFlare><feedburner:feedFlare href="http://www.podcastready.com/oneclick_bookmark.php?url=http%3A%2F%2Ffeeds.feedburner.com%2Fnlog" src="http://www.podcastready.com/images/podcastready_button.gif">Subscribe with Podcast Ready</feedburner:feedFlare><feedburner:feedFlare href="http://www.wikio.com/subscribe?url=http%3A%2F%2Ffeeds.feedburner.com%2Fnlog" src="http://www.wikio.com/shared/img/add2wikio.gif">Subscribe with Wikio</feedburner:feedFlare><feedburner:feedFlare href="http://www.dailyrotation.com/index.php?feed=http%3A%2F%2Ffeeds.feedburner.com%2Fnlog" src="http://www.dailyrotation.com/rss-dr2.gif">Subscribe with Daily Rotation</feedburner:feedFlare><item>
		<title>Using NLog with Mono</title>
		<link>http://feedproxy.google.com/~r/nlog/~3/gmTGwQWr8_w/using-nlog-with-mono.html</link>
		<comments>http://nlog-project.org/2011/10/30/using-nlog-with-mono.html#comments</comments>
		<pubDate>Mon, 31 Oct 2011 01:33:35 +0000</pubDate>
		<dc:creator>Jarek Kowalski</dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[NLog v2]]></category>

		<guid isPermaLink="false">http://nlog-project.org/?p=632</guid>
		<description>&lt;p&gt;After releasing NLog 2.0 a number of people have reported problems with running on latest versions of Mono. Basically at the end of program execution (after the Main() has finished) the program locks up waiting for NLog logs to be flushed, so mono process never completes and needs to be killed.&lt;/p&gt;
&lt;p&gt;This behavior is only specific to NLog 2.0 &amp;#8211; NLog 1.0 did not exhibit this behavior. It seems to be related to threading and timers used by NLog 2.0 which are somehow not available in Mono when the program is about to be terminated. The same code works with .NET just fine. I haven&amp;#8217;t fully investigated this issue &amp;#8211; maybe Mono folks can see if this issue can be fixed in Mono itself?&lt;/p&gt;
&lt;p&gt;Anyway &amp;#8211; there is a simple way prevent the deadlock: just make sure you set LogManager.Configuration property to null before your application exits. This will cause Flush() to be executed before Main() finishes and will prevent &amp;#8230;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/nlog/~4/gmTGwQWr8_w" height="1" width="1"/&gt;</description>
		<wfw:commentRss>http://nlog-project.org/2011/10/30/using-nlog-with-mono.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://nlog-project.org/2011/10/30/using-nlog-with-mono.html</feedburner:origLink></item>
		<item>
		<title>NLog 2.0 has been released!</title>
		<link>http://feedproxy.google.com/~r/nlog/~3/NEj1rW8zggY/nlog-2-0-has-been-released.html</link>
		<comments>http://nlog-project.org/2011/07/17/nlog-2-0-has-been-released.html#comments</comments>
		<pubDate>Mon, 18 Jul 2011 07:31:20 +0000</pubDate>
		<dc:creator>Jarek Kowalski</dc:creator>
				<category><![CDATA[News]]></category>

		<guid isPermaLink="false">http://nlog-project.org/?p=613</guid>
		<description>&lt;p&gt;It is my great pleasure to announce that NLog 2.0 has been released.&lt;/p&gt;
&lt;p&gt;NLog 2.0 release is focused on adding support for new platforms (Silverlight, .NET Framework 4, Windows Phone 7.x), improving logging architecture and manageability and addressing most frequently reported user issues.&lt;/p&gt;
&lt;p&gt;Binaries can be downloaded from &lt;a href="http://nlog.codeplex.com/releases/view/32639"&gt;CodePlex&lt;/a&gt;.&lt;br /&gt;
Sources are available at &lt;a href="http://github.com/jkowalski/NLog"&gt;GitHub&lt;/a&gt;.&lt;br /&gt;
&lt;a href="http://nuget.org"&gt;NuGet&lt;/a&gt; packages are also &lt;a href="http://nuget.org/List/Packages/NLog"&gt;available&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;You can read the release notes at &lt;a href="http://nlog-project.org/nlog-2-0-release-notes"&gt;http://nlog-project.org/nlog-2-0-release-notes&lt;/a&gt;.&amp;#8230;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/nlog/~4/NEj1rW8zggY" height="1" width="1"/&gt;</description>
		<wfw:commentRss>http://nlog-project.org/2011/07/17/nlog-2-0-has-been-released.html/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		<feedburner:origLink>http://nlog-project.org/2011/07/17/nlog-2-0-has-been-released.html</feedburner:origLink></item>
		<item>
		<title>NLog 2.0 Release Candidate is now available</title>
		<link>http://feedproxy.google.com/~r/nlog/~3/IOCA8hDJz_A/nlog-20-release-candidate.html</link>
		<comments>http://nlog-project.org/2011/06/17/nlog-20-release-candidate.html#comments</comments>
		<pubDate>Sat, 18 Jun 2011 07:17:41 +0000</pubDate>
		<dc:creator>Jarek Kowalski</dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[NLog v2]]></category>

		<guid isPermaLink="false">http://nlog-project.org/?p=562</guid>
		<description>&lt;p&gt;It is our pleasure to announce that the Release Candidate (RC) of NLog 2.0 is now available for download. This is the last milestone before NLog 2.0 final release.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Binary downloads are available on &lt;a href="http://nlog.codeplex.com/releases/view/68535"&gt;CodePlex&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Source code on &lt;a href="http://github.com/jkowalski/NLog"&gt;GitHub&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Full release notes can be found &lt;a href="http://nlog-project.org/nlog-2-rc-release-notes"&gt;here&lt;/a&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Please download the release and report any problems you may find. Assuming no critical issues are found, NLog 2.0 will be released within a month from the RC release.&amp;#8230;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/nlog/~4/IOCA8hDJz_A" height="1" width="1"/&gt;</description>
		<wfw:commentRss>http://nlog-project.org/2011/06/17/nlog-20-release-candidate.html/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		<feedburner:origLink>http://nlog-project.org/2011/06/17/nlog-20-release-candidate.html</feedburner:origLink></item>
		<item>
		<title>Exception logging enhancements</title>
		<link>http://feedproxy.google.com/~r/nlog/~3/EID8YotIUkM/exception-logging-enhancements.html</link>
		<comments>http://nlog-project.org/2011/04/20/exception-logging-enhancements.html#comments</comments>
		<pubDate>Thu, 21 Apr 2011 05:12:00 +0000</pubDate>
		<dc:creator>Jarek Kowalski</dc:creator>
				<category><![CDATA[Advanced]]></category>
		<category><![CDATA[News]]></category>
		<category><![CDATA[NLog v2]]></category>

		<guid isPermaLink="false">http://nlog-project.org/?p=559</guid>
		<description>&lt;p&gt;One of the frequent feature requests I&amp;#8217;ve been getting was to improve the way exceptions are logged. Recent builds of NLog 2.0 include several usability enhancements that should make working with exceptions much easier.&lt;/p&gt;
&lt;h3&gt;Conditional formatting&lt;/h3&gt;
&lt;p&gt;Conditional logging allows you to make your layouts somewhat more dynamic &amp;#8211; you can include/exclude fields based on conditions, provide default values and so on. In order to achieve this, you have 3 new layout renderers at your disposal.&lt;/p&gt;
&lt;h4&gt;${onexception:INNER} -&amp;#160; output &lt;/h4&gt;
&lt;p&gt;To render a layout when the exception is being logged, use &lt;strong&gt;${onexception:INNER}&lt;/strong&gt;, it will output INNER only when current log event includes an exception (in other words when it was emitted using any of the Logger.*Exception() methods. INNER can include other layouts, for example:&lt;/p&gt;
&lt;pre class="csharpcode"&gt;&lt;span class="kwrd"&gt;&amp;#60;&lt;/span&gt;&lt;span class="html"&gt;targets&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;#62;&lt;/span&gt;
  &lt;span class="kwrd"&gt;&amp;#60;&lt;/span&gt;&lt;span class="html"&gt;target&lt;/span&gt; &lt;span class="attr"&gt;name&lt;/span&gt;&lt;span class="kwrd"&gt;=&amp;#34;f&amp;#34;&lt;/span&gt; &lt;span class="attr"&gt;type&lt;/span&gt;&lt;span class="kwrd"&gt;=&amp;#34;File&amp;#34;&lt;/span&gt; &lt;span class="attr"&gt;layout&lt;/span&gt;&lt;span class="kwrd"&gt;=&amp;#34;${message}${onexception:EXCEPTION OCCURRED\:${exception:format=tostring}}&amp;#34;&lt;/span&gt; &lt;span class="kwrd"&gt;/&amp;#62;&lt;/span&gt;
&lt;span class="kwrd"&gt;&amp;#60;/&lt;/span&gt;&lt;span class="html"&gt;targets&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;#62;&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;It will output log message, but in case of exception, it will also log detailed exception information prefixed with &amp;#34;EXCEPTION OCCURRED:&amp;#34;.&amp;#8230;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/nlog/~4/EID8YotIUkM" height="1" width="1"/&gt;</description>
		<wfw:commentRss>http://nlog-project.org/2011/04/20/exception-logging-enhancements.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		<feedburner:origLink>http://nlog-project.org/2011/04/20/exception-logging-enhancements.html</feedburner:origLink></item>
		<item>
		<title>Simplifying NLog.Extended.dll usage</title>
		<link>http://feedproxy.google.com/~r/nlog/~3/MxF0lSD8uWU/simplifying-nlog-extended-dll-usage.html</link>
		<comments>http://nlog-project.org/2011/04/14/simplifying-nlog-extended-dll-usage.html#comments</comments>
		<pubDate>Fri, 15 Apr 2011 06:44:38 +0000</pubDate>
		<dc:creator>Jarek Kowalski</dc:creator>
				<category><![CDATA[News]]></category>

		<guid isPermaLink="false">http://nlog-project.org/?p=552</guid>
		<description>&lt;p&gt;I&amp;#8217;d like to let you know about small simplification to using targets and layout renderers from NLog.Extended.dll. Previously you had to register them using  configuration section:&lt;/p&gt;
&lt;pre&gt;
&amp;#60;extensions&amp;#62;
  &amp;#60;add assembly="NLog.Extended" /&amp;#62;
&amp;#60;/extensions&amp;#62;
&lt;/pre&gt;
&lt;p&gt;Starting with today&amp;#8217;s Nightly build, this is no longer required &amp;#8211; you can simply use extended items without extra registration (exactly like it worked in NLog 1.0). The only change is that you must have NLog.Extended.dll in the same directory as NLog.dll &amp;#8211; you will get exception if it&amp;#8217;s not present.&lt;/p&gt;
&lt;p&gt;If you need NLog.Extended, please &lt;a href="http://nlog-project.org/download"&gt;give this feature a try&lt;/a&gt; and report any issues you find.&amp;#8230;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/nlog/~4/MxF0lSD8uWU" height="1" width="1"/&gt;</description>
		<wfw:commentRss>http://nlog-project.org/2011/04/14/simplifying-nlog-extended-dll-usage.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://nlog-project.org/2011/04/14/simplifying-nlog-extended-dll-usage.html</feedburner:origLink></item>
		<item>
		<title>NLog for Windows Phone 7</title>
		<link>http://feedproxy.google.com/~r/nlog/~3/zNniokfvER0/nlog-for-windows-phone-7.html</link>
		<comments>http://nlog-project.org/2011/01/09/nlog-for-windows-phone-7.html#comments</comments>
		<pubDate>Mon, 10 Jan 2011 05:06:43 +0000</pubDate>
		<dc:creator>Jarek Kowalski</dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[NLog v2]]></category>

		<guid isPermaLink="false">http://nlog-project.org/?p=533</guid>
		<description>&lt;p&gt;This week I have checked in a port of NLog 2.0 for Windows Phone 7. It’s still very experimental and the intention of this release is to get feedback from people. Please use at your own risk.&lt;/p&gt;
&lt;p&gt;Current build supports 8 targets:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="http://nlog-project.org/wiki/Console_target"&gt;Console&lt;/a&gt; – can be used to write logs to the console (only works in Emulator – see &lt;a href="http://forums.create.msdn.com/forums/p/60378/372138.aspx#372138"&gt;this post&lt;/a&gt; for instruction on how to enable console output) &lt;/li&gt;
&lt;li&gt;&lt;a href="http://nlog-project.org/wiki/Memory_target"&gt;Memory&lt;/a&gt; – stores traces in memory &lt;/li&gt;
&lt;li&gt;&lt;a href="http://nlog-project.org/wiki/MethodCall_target"&gt;MethodCall&lt;/a&gt; – runs user-provided method for each log message &lt;/li&gt;
&lt;li&gt;&lt;a href="http://nlog-project.org/wiki/Network_target"&gt;Network&lt;/a&gt;, &lt;a href="http://nlog-project.org/wiki/NLogViewer_target"&gt;NLogViewer&lt;/a&gt; and &lt;a href="http://nlog-project.org/wiki/Chainsaw_target"&gt;Chainsaw&lt;/a&gt; – write XML-formatted log event over the network. Only HTTP:// and HTTPS:// protocols are supported. &lt;/li&gt;
&lt;li&gt;&lt;a href="http://nlog-project.org/wiki/WebService_target"&gt;WebService&lt;/a&gt; – sends log events to a web service using SOAP or POST &lt;/li&gt;
&lt;li&gt;&lt;a href="http://nlog-project.org/wiki/LogReceiverService_target"&gt;LogReceiverService&lt;/a&gt; – sends log events to LogReceiver web service using WCF &lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Note that &lt;a href="http://nlog-project.org/wiki/File_target"&gt;File&lt;/a&gt; target and several others are not included because of current constraints of the platform APIs.&lt;/p&gt;
&lt;p&gt;Here is a simple step-by-step tutorial for adding NLog to your WP7 app:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;h3&gt;Download &lt;/h3&gt;&lt;/li&gt;&amp;#8230;&lt;/ol&gt;&lt;img src="http://feeds.feedburner.com/~r/nlog/~4/zNniokfvER0" height="1" width="1"/&gt;</description>
		<wfw:commentRss>http://nlog-project.org/2011/01/09/nlog-for-windows-phone-7.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<feedburner:origLink>http://nlog-project.org/2011/01/09/nlog-for-windows-phone-7.html</feedburner:origLink></item>
		<item>
		<title>NLog 2.0 Beta 1 has been released</title>
		<link>http://feedproxy.google.com/~r/nlog/~3/9OQoZihFAWo/nlog-2-0-beta-1-has-been-released.html</link>
		<comments>http://nlog-project.org/2010/09/26/nlog-2-0-beta-1-has-been-released.html#comments</comments>
		<pubDate>Mon, 27 Sep 2010 01:59:48 +0000</pubDate>
		<dc:creator>Jarek Kowalski</dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[NLog v2]]></category>

		<guid isPermaLink="false">http://nlog-project.org/2010/09/26/nlog-2-0-beta-1-has-been-released.html</guid>
		<description>&lt;p&gt;It is my pleasure to announce that NLog 2.0 Beta 1 has been released. &lt;/p&gt;
&lt;p&gt;NLog 2.0 release is focused on adding support for new platforms (Silverlight, .NET Framework 4), improving logging architecture and manageability and addressing most frequently reported user issues. &lt;/p&gt;
&lt;p&gt;The following platforms are supported in this release:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;.NET Framework 2.0 SP1 and above, 3.5 (Client and Extended profiles), 4.0 (Client and Extended profiles) &lt;/li&gt;
&lt;li&gt;Silverlight 2.0, 3.0, 4.0 &lt;/li&gt;
&lt;li&gt;.NET Compact Framework 2.0, 3.5 &lt;/li&gt;
&lt;li&gt;Mono 2.x profile &lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Read full release notes:    &lt;br /&gt;&lt;a href="http://nlog-project.org/nlog2-beta1-release-notes"&gt;http://nlog-project.org/nlog2-beta1-release-notes&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Download Beta 1 bits on CodePlex:    &lt;br /&gt;&lt;a href="http://nlog.codeplex.com/releases/view/52957"&gt;http://nlog.codeplex.com/releases/view/52957&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Source code is available on GitHub:    &lt;br /&gt;&lt;a href="http://github.com/jkowalski/NLog/"&gt;http://github.com/jkowalski/NLog/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Bugs can be reported on CodePlex:    &lt;br /&gt;&lt;a href="http://nlog.codeplex.com/workitem/list/basic"&gt;http://nlog.codeplex.com/workitem/list/basic&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Discuss on forum:    &lt;br /&gt;&lt;a href="http://nlog-project.org/forum"&gt;http://nlog-project.org/forum&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Subscribe to NLog RSS feed:    &lt;br /&gt;&lt;a href="http://nlog-project.org/feed"&gt;http://nlog-project.org/feed&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Follow @JarekKowalski on Twitter:   &lt;br /&gt;&lt;a href="http://twitter.com/JarekKowalski"&gt;http://twitter.com/JarekKowalski&lt;/a&gt;&amp;#8230;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/nlog/~4/9OQoZihFAWo" height="1" width="1"/&gt;</description>
		<wfw:commentRss>http://nlog-project.org/2010/09/26/nlog-2-0-beta-1-has-been-released.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://nlog-project.org/2010/09/26/nlog-2-0-beta-1-has-been-released.html</feedburner:origLink></item>
		<item>
		<title>Deploying NLog configuration files</title>
		<link>http://feedproxy.google.com/~r/nlog/~3/q60aKdK-10c/deploying-nlog-configuration.html</link>
		<comments>http://nlog-project.org/2010/09/25/deploying-nlog-configuration.html#comments</comments>
		<pubDate>Sat, 25 Sep 2010 20:10:56 +0000</pubDate>
		<dc:creator>Jarek Kowalski</dc:creator>
				<category><![CDATA[News]]></category>

		<guid isPermaLink="false">http://nlog-project.org/?p=514</guid>
		<description>&lt;p&gt;Some of the &lt;a href="http://nlog-project.org/wiki/Targets"&gt;targets&lt;/a&gt; supported by NLog require installation to be performed on the machine before the target can be used. For example, when logging to a &lt;a href="http://nlog-project.org/wiki/Database_target"&gt;database&lt;/a&gt;, a DBA needs to create the necessary tables, when logging to &lt;a href="http://nlog-project.org/wiki/EventLog_target"&gt;event log&lt;/a&gt; or &lt;a href="http://nlog-project.org/wiki/PerfCounter_target"&gt;performance counter&lt;/a&gt;, administrator of the machine must create them before the application can write to them.&lt;/p&gt;
&lt;p&gt;NLog 2.0 comes with a new tool and APIs that lets you manage installation and uninstallation of objects which support logging.&lt;/p&gt;
&lt;p&gt;Say you want to write logs to:&lt;/p&gt;
&lt;li&gt;local SQLEXPRESS database &lt;/li&gt;
&lt;li&gt;Event Log on the local machine &lt;/li&gt;
&lt;li&gt;increase performance counter each time log message occurs. &lt;/li&gt;
&lt;p&gt;With NLog 2.0, you can embed installation/uninstallations steps directly in the log configuration file, like in the following example:&lt;/p&gt;
&lt;pre class="csharpcode"&gt;&lt;span class="kwrd"&gt;&amp;#60;?&lt;/span&gt;&lt;span class="html"&gt;xml&lt;/span&gt; &lt;span class="attr"&gt;version&lt;/span&gt;&lt;span class="kwrd"&gt;=&amp;#34;1.0&amp;#34;&lt;/span&gt; &lt;span class="attr"&gt;encoding&lt;/span&gt;&lt;span class="kwrd"&gt;=&amp;#34;utf-8&amp;#34;&lt;/span&gt; ?&lt;span class="kwrd"&gt;&amp;#62;&lt;/span&gt;
&lt;span class="kwrd"&gt;&amp;#60;&lt;/span&gt;&lt;span class="html"&gt;nlog&lt;/span&gt; &lt;span class="attr"&gt;xmlns&lt;/span&gt;&lt;span class="kwrd"&gt;=&amp;#34;http://www.nlog-project.org/schemas/NLog.xsd&amp;#34;&lt;/span&gt;
      &lt;span class="attr"&gt;xmlns:xsi&lt;/span&gt;&lt;span class="kwrd"&gt;=&amp;#34;http://www.w3.org/2001/XMLSchema-instance&amp;#34;&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;#62;&lt;/span&gt;
  &lt;span class="kwrd"&gt;&amp;#60;&lt;/span&gt;&lt;span class="html"&gt;targets&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;#62;&lt;/span&gt;
    &lt;span class="kwrd"&gt;&amp;#60;&lt;/span&gt;&lt;span class="html"&gt;target&lt;/span&gt; &lt;span class="attr"&gt;xsi:type&lt;/span&gt;&lt;span class="kwrd"&gt;=&amp;#34;Database&amp;#34;&lt;/span&gt; &lt;span class="attr"&gt;name&lt;/span&gt;&lt;span class="kwrd"&gt;=&amp;#34;db&amp;#34;&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;#62;&lt;/span&gt;
      &lt;span class="rem"&gt;&amp;#60;!-- SQL command to be executed for each entry --&amp;#62;&lt;/span&gt;
      &lt;span class="kwrd"&gt;&amp;#60;&lt;/span&gt;&amp;#8230;&lt;/pre&gt;&lt;img src="http://feeds.feedburner.com/~r/nlog/~4/q60aKdK-10c" height="1" width="1"/&gt;</description>
		<wfw:commentRss>http://nlog-project.org/2010/09/25/deploying-nlog-configuration.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<feedburner:origLink>http://nlog-project.org/2010/09/25/deploying-nlog-configuration.html</feedburner:origLink></item>
		<item>
		<title>New exception handling rules in NLog 2.0</title>
		<link>http://feedproxy.google.com/~r/nlog/~3/ORAKNb0jaTw/new-exception-handling-rules-in-nlog-2-0.html</link>
		<comments>http://nlog-project.org/2010/09/05/new-exception-handling-rules-in-nlog-2-0.html#comments</comments>
		<pubDate>Sun, 05 Sep 2010 17:32:36 +0000</pubDate>
		<dc:creator>Jarek Kowalski</dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[NLog v2]]></category>

		<guid isPermaLink="false">http://nlog-project.org/2010/09/05/new-exception-handling-rules-in-nlog-2-0.html</guid>
		<description>&lt;p&gt;NLog will introduce a change to logging exception handling and suppression. In NLog 1.0 all exceptions were disabled by default, but could be enabled by setting&lt;/p&gt;
&lt;pre class="csharpcode"&gt;&lt;span class="kwrd"&gt;&amp;#60;&lt;/span&gt;&lt;span class="html"&gt;nlog&lt;/span&gt; &lt;span class="attr"&gt;throwExceptions&lt;/span&gt;=”&lt;span class="attr"&gt;true&lt;/span&gt;”&lt;span class="kwrd"&gt;&amp;#62;&lt;/span&gt;

&lt;span class="kwrd"&gt;&amp;#60;/&lt;/span&gt;&lt;span class="html"&gt;nlog&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;#62;&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;or in code:&lt;/p&gt;
&lt;pre class="csharpcode"&gt;LogManager.ThrowExceptions = &lt;span class="kwrd"&gt;true&lt;/span&gt;;&lt;/pre&gt;
&lt;p&gt;This flag applied to configuration errors as well as runtime errors, which was problematic, because a simple configuration file typo could cause entire logging to be disabled silently.&lt;/p&gt;
&lt;p&gt;To address this, NLog 2.0 will treat configuration errors separately from runtime errors. There will be two kinds of exceptions:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Configuration exceptions &amp;#8211; raised during parsing of &lt;a href="http://nlog-project.org/wiki/Configuration_file"&gt;configuration file&lt;/a&gt; and wrapped in &lt;strong&gt;NLogConfigurationException&lt;/strong&gt;. Such errors are fatal and will prevent your application from starting (this is the same as having malformed App.config or Web.config). The errors that cause this exception are:&lt;/li&gt;
&lt;ul&gt;
&lt;li&gt;syntax errors in NLog.config&lt;/li&gt;
&lt;li&gt;invalid target names&lt;/li&gt;
&lt;li&gt;invalid property names&lt;/li&gt;
&lt;li&gt;invalid property values&lt;/li&gt;
&lt;/ul&gt;
&lt;li&gt;Runtime exceptions (such as permission issues, connection failures, etc.) – raised during logging and &lt;/li&gt;&amp;#8230;&lt;/ol&gt;&lt;img src="http://feeds.feedburner.com/~r/nlog/~4/ORAKNb0jaTw" height="1" width="1"/&gt;</description>
		<wfw:commentRss>http://nlog-project.org/2010/09/05/new-exception-handling-rules-in-nlog-2-0.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<feedburner:origLink>http://nlog-project.org/2010/09/05/new-exception-handling-rules-in-nlog-2-0.html</feedburner:origLink></item>
		<item>
		<title>Routing System.Diagnostics.Trace and System.Diagnostics.TraceSource logs through NLog</title>
		<link>http://feedproxy.google.com/~r/nlog/~3/nactl3rFK8o/routing-system-diagnostics-trace-and-system-diagnostics-tracesource-logs-through-nlog.html</link>
		<comments>http://nlog-project.org/2010/09/02/routing-system-diagnostics-trace-and-system-diagnostics-tracesource-logs-through-nlog.html#comments</comments>
		<pubDate>Fri, 03 Sep 2010 04:15:43 +0000</pubDate>
		<dc:creator>Jarek Kowalski</dc:creator>
				<category><![CDATA[News]]></category>

		<guid isPermaLink="false">http://nlog-project.org/?p=497</guid>
		<description>&lt;p&gt;I have recently added a trace listener class for NLog, which enables routing of System.Diagnostics.Trace and System.Diagnostics.TraceSource logs through your favorite log routing engine. This can be very useful for integrating components that don’t necessarily support logging through NLog as well as analyzing traces produced .NET Framework itself. &lt;/p&gt;
&lt;p&gt;By using NLog trace listener you can send those logs via &lt;a href="http://nlog-project.org/wiki/Mail_target"&gt;email&lt;/a&gt;, save them to a &lt;a href="http://nlog-project.org/wiki/Database_target"&gt;database&lt;/a&gt;, &lt;a href="http://nlog-project.org/wiki/Mail_target"&gt;file&lt;/a&gt; or to any other supported log &lt;strong&gt;&lt;a href="http://nlog-project.org/wiki/Targets"&gt;target&lt;/a&gt;&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;Let’s create a simple example – application that makes network call. We will then enable network call tracing without touching a single line of code.&lt;/p&gt;
&lt;pre class="csharpcode"&gt;&lt;span class="kwrd"&gt;namespace&lt;/span&gt; TraceDemo
{
  &lt;span class="kwrd"&gt;using&lt;/span&gt; System.Net; 

  &lt;span class="kwrd"&gt;class&lt;/span&gt; Program
  {
    &lt;span class="kwrd"&gt;static&lt;/span&gt; &lt;span class="kwrd"&gt;void&lt;/span&gt; Main(&lt;span class="kwrd"&gt;string&lt;/span&gt;[] args)
    {
      var webClient = &lt;span class="kwrd"&gt;new&lt;/span&gt; WebClient();
      webClient.DownloadString(&lt;span class="str"&gt;&amp;#34;http://somehost/nosuchfile.txt&amp;#34;&lt;/span&gt;);
    }
  }
}&lt;/pre&gt;
&lt;p&gt;As you can see the example is just using WebClient from System.Net namespace, and has no tracing-specific code. Internally WebClient is capable of outputting traces through &lt;strong&gt;System.Net&lt;/strong&gt; trace source. To route those traces &amp;#8230;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/nlog/~4/nactl3rFK8o" height="1" width="1"/&gt;</description>
		<wfw:commentRss>http://nlog-project.org/2010/09/02/routing-system-diagnostics-trace-and-system-diagnostics-tracesource-logs-through-nlog.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://nlog-project.org/2010/09/02/routing-system-diagnostics-trace-and-system-diagnostics-tracesource-logs-through-nlog.html</feedburner:origLink></item>
	</channel>
</rss>

