<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Getting Started with Log4Net</title>
	<atom:link href="http://elegantcode.com/2007/12/07/getting-started-with-log4net/feed/" rel="self" type="application/rss+xml" />
	<link>http://elegantcode.com/2007/12/07/getting-started-with-log4net/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=getting-started-with-log4net</link>
	<description></description>
	<lastBuildDate>Sun, 12 Feb 2012 18:54:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.5</generator>
	<item>
		<title>By: Georg</title>
		<link>http://elegantcode.com/2007/12/07/getting-started-with-log4net/comment-page-1/#comment-32665</link>
		<dc:creator>Georg</dc:creator>
		<pubDate>Tue, 16 Sep 2008 08:25:27 +0000</pubDate>
		<guid isPermaLink="false">http://elegantcode.com/2007/12/07/getting-started-with-log4net/#comment-32665</guid>
		<description>You are using XmlConfigurator.Config() in the global.asa.cs fil, I just want to mention that Log4Net has the possibility to reload configuration when the config is changed. 

Typical used if you change the log level when the application is running, or activate another appender etc.

To activate this you need to use the XmlConfigurator.ConfigureAndWatch, for example by inserting a assembly-level attribute in the Global.asa.cs, like:

 [assembly: log4net.Config.XmlConfigurator(Watch=true)]

Instead of using the XmlConfigurator.Config() in the application start event.

The configuration file will be monitored using a FileSystemWatcher, and reloaded whenever it is changed.

Best regards
Georg
http://www.l4ndash.com – Log4net Dashboard</description>
		<content:encoded><![CDATA[<p>You are using XmlConfigurator.Config() in the global.asa.cs fil, I just want to mention that Log4Net has the possibility to reload configuration when the config is changed. </p>
<p>Typical used if you change the log level when the application is running, or activate another appender etc.</p>
<p>To activate this you need to use the XmlConfigurator.ConfigureAndWatch, for example by inserting a assembly-level attribute in the Global.asa.cs, like:</p>
<p> [assembly: log4net.Config.XmlConfigurator(Watch=true)]</p>
<p>Instead of using the XmlConfigurator.Config() in the application start event.</p>
<p>The configuration file will be monitored using a FileSystemWatcher, and reloaded whenever it is changed.</p>
<p>Best regards<br />
Georg<br />
<a href="http://www.l4ndash.com" rel="nofollow">http://www.l4ndash.com</a> – Log4net Dashboard</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Greenspan</title>
		<link>http://elegantcode.com/2007/12/07/getting-started-with-log4net/comment-page-1/#comment-20716</link>
		<dc:creator>Greenspan</dc:creator>
		<pubDate>Fri, 09 May 2008 02:26:19 +0000</pubDate>
		<guid isPermaLink="false">http://elegantcode.com/2007/12/07/getting-started-with-log4net/#comment-20716</guid>
		<description>No text file is being written. Been looking around but can&#039;t figure out what&#039;s causing it. Any help is appreciated. Thanks!</description>
		<content:encoded><![CDATA[<p>No text file is being written. Been looking around but can&#8217;t figure out what&#8217;s causing it. Any help is appreciated. Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul</title>
		<link>http://elegantcode.com/2007/12/07/getting-started-with-log4net/comment-page-1/#comment-18090</link>
		<dc:creator>Paul</dc:creator>
		<pubDate>Tue, 11 Mar 2008 07:04:07 +0000</pubDate>
		<guid isPermaLink="false">http://elegantcode.com/2007/12/07/getting-started-with-log4net/#comment-18090</guid>
		<description>I got it working. It was not at all difficult once I found my real problem which was unrelated (install problems). 

I have been able to use a couple of environment variables directly in log4net.config with success.

TY.</description>
		<content:encoded><![CDATA[<p>I got it working. It was not at all difficult once I found my real problem which was unrelated (install problems). </p>
<p>I have been able to use a couple of environment variables directly in log4net.config with success.</p>
<p>TY.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris Brandsma</title>
		<link>http://elegantcode.com/2007/12/07/getting-started-with-log4net/comment-page-1/#comment-18068</link>
		<dc:creator>Chris Brandsma</dc:creator>
		<pubDate>Mon, 10 Mar 2008 14:54:01 +0000</pubDate>
		<guid isPermaLink="false">http://elegantcode.com/2007/12/07/getting-started-with-log4net/#comment-18068</guid>
		<description>The main issue will be in WHERE  the log file gets written in vista. You should not write it anywhere in Program Files (Vista doesn&#039;t like that).

You best bet is to specify in your code where to write the log file to, and use the &quot;SpecialFolders&quot; (I don&#039;t remember what namespace they are in, but you can search on Special Folders), to put the log file in the user&#039;s application data folder.

The actual path to that directory will look something like: C:\Users\UserName\AppData\Local  or C:\Users\UserName\AppData\Roaming

You want it in Roaming if your users are working on multiple machines and they want the same settings on all those machines.

Good luck.</description>
		<content:encoded><![CDATA[<p>The main issue will be in WHERE  the log file gets written in vista. You should not write it anywhere in Program Files (Vista doesn&#8217;t like that).</p>
<p>You best bet is to specify in your code where to write the log file to, and use the &#8220;SpecialFolders&#8221; (I don&#8217;t remember what namespace they are in, but you can search on Special Folders), to put the log file in the user&#8217;s application data folder.</p>
<p>The actual path to that directory will look something like: C:\Users\UserName\AppData\Local  or C:\Users\UserName\AppData\Roaming</p>
<p>You want it in Roaming if your users are working on multiple machines and they want the same settings on all those machines.</p>
<p>Good luck.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul</title>
		<link>http://elegantcode.com/2007/12/07/getting-started-with-log4net/comment-page-1/#comment-18056</link>
		<dc:creator>Paul</dc:creator>
		<pubDate>Mon, 10 Mar 2008 02:11:55 +0000</pubDate>
		<guid isPermaLink="false">http://elegantcode.com/2007/12/07/getting-started-with-log4net/#comment-18056</guid>
		<description>Do you have any idea how to get log4net to write a log file on Vista???

This is for a windows forms app, and the logger must work for admin and non-admin processes. So far nothing. I can&#039;t get it to work.</description>
		<content:encoded><![CDATA[<p>Do you have any idea how to get log4net to write a log file on Vista???</p>
<p>This is for a windows forms app, and the logger must work for admin and non-admin processes. So far nothing. I can&#8217;t get it to work.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JLucca</title>
		<link>http://elegantcode.com/2007/12/07/getting-started-with-log4net/comment-page-1/#comment-17996</link>
		<dc:creator>JLucca</dc:creator>
		<pubDate>Wed, 05 Mar 2008 05:43:01 +0000</pubDate>
		<guid isPermaLink="false">http://elegantcode.com/2007/12/07/getting-started-with-log4net/#comment-17996</guid>
		<description>oops. Typo above. The xml code got left out and I stupidly put a file:/ link. 

What I meant to say:
The logger nodes can only be defined as children of the log4net element. See the log4net manual under configuration (bottom of the page). I can&#039;t actually find an online link to the 1.2.10 manual. After you download and unpack log4net, look in the doc/ directory for the manual. The configuration page is there.</description>
		<content:encoded><![CDATA[<p>oops. Typo above. The xml code got left out and I stupidly put a file:/ link. </p>
<p>What I meant to say:<br />
The logger nodes can only be defined as children of the log4net element. See the log4net manual under configuration (bottom of the page). I can&#8217;t actually find an online link to the 1.2.10 manual. After you download and unpack log4net, look in the doc/ directory for the manual. The configuration page is there.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JLucca</title>
		<link>http://elegantcode.com/2007/12/07/getting-started-with-log4net/comment-page-1/#comment-17994</link>
		<dc:creator>JLucca</dc:creator>
		<pubDate>Wed, 05 Mar 2008 05:24:50 +0000</pubDate>
		<guid isPermaLink="false">http://elegantcode.com/2007/12/07/getting-started-with-log4net/#comment-17994</guid>
		<description>Very helpful and welcome explanation for someone accustomed to log4j and wanting to get up to speed fast. 

I did have a moment where I didn&#039;t know where to put the logger nodes. I found it documented on the log4net site. For those also confused, they can only be defined as children of the  element. See the log4net manual under configuration (bottom of the page) at file:///C:/lib.net/log4net/log4net-1.2.10/doc/release/manual/configuration.html#loggers</description>
		<content:encoded><![CDATA[<p>Very helpful and welcome explanation for someone accustomed to log4j and wanting to get up to speed fast. </p>
<p>I did have a moment where I didn&#8217;t know where to put the logger nodes. I found it documented on the log4net site. For those also confused, they can only be defined as children of the  element. See the log4net manual under configuration (bottom of the page) at file:///C:/lib.net/log4net/log4net-1.2.10/doc/release/manual/configuration.html#loggers</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: K.I.S.S. Programming &#187; Using log4Net in a Windows Console app</title>
		<link>http://elegantcode.com/2007/12/07/getting-started-with-log4net/comment-page-1/#comment-16660</link>
		<dc:creator>K.I.S.S. Programming &#187; Using log4Net in a Windows Console app</dc:creator>
		<pubDate>Thu, 27 Dec 2007 04:12:24 +0000</pubDate>
		<guid isPermaLink="false">http://elegantcode.com/2007/12/07/getting-started-with-log4net/#comment-16660</guid>
		<description>[...] are both open source tools (free). The demo was on how to integrate it into an ASP.Net application (see Chris Brandsma&#8217;s blog entry on it). His demo and blog works well for ASP.Net applications, but I do a lot of console application [...]</description>
		<content:encoded><![CDATA[<p>[...] are both open source tools (free). The demo was on how to integrate it into an ASP.Net application (see Chris Brandsma&#8217;s blog entry on it). His demo and blog works well for ASP.Net applications, but I do a lot of console application [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>

