<?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: .NET application logging with Log4net in Console , File &amp; Database</title>
	<atom:link href="http://actcode.com/2009/11/net-application-logging-with-log4net-in-console-file-database/feed/" rel="self" type="application/rss+xml" />
	<link>http://actcode.com/2009/11/net-application-logging-with-log4net-in-console-file-database/</link>
	<description></description>
	<lastBuildDate>Fri, 29 Jul 2011 06:24:36 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
	<item>
		<title>By: windows 7</title>
		<link>http://actcode.com/2009/11/net-application-logging-with-log4net-in-console-file-database/#comment-29</link>
		<dc:creator>windows 7</dc:creator>
		<pubDate>Sat, 20 Nov 2010 05:44:49 +0000</pubDate>
		<guid isPermaLink="false">http://actcode.com/?p=32#comment-29</guid>
		<description>Absolutely brilliant post guys, been following your blog for 3 days now and i should say i am starting to like your post. and now how do i subscribe to your blog?</description>
		<content:encoded><![CDATA[<p>Absolutely brilliant post guys, been following your blog for 3 days now and i should say i am starting to like your post. and now how do i subscribe to your blog?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tanvir Anowar</title>
		<link>http://actcode.com/2009/11/net-application-logging-with-log4net-in-console-file-database/#comment-25</link>
		<dc:creator>Tanvir Anowar</dc:creator>
		<pubDate>Wed, 23 Dec 2009 16:25:39 +0000</pubDate>
		<guid isPermaLink="false">http://actcode.com/?p=32#comment-25</guid>
		<description>Hello GW and others ... thanks for you comments. It&#039;s definitely a good idea to used switch case and make the log write static,it shouldn&#039;t suppose to have drawback.</description>
		<content:encoded><![CDATA[<p>Hello GW and others &#8230; thanks for you comments. It&#39;s definitely a good idea to used switch case and make the log write static,it shouldn&#39;t suppose to have drawback.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: GW</title>
		<link>http://actcode.com/2009/11/net-application-logging-with-log4net-in-console-file-database/#comment-24</link>
		<dc:creator>GW</dc:creator>
		<pubDate>Tue, 15 Dec 2009 20:39:04 +0000</pubDate>
		<guid isPermaLink="false">http://actcode.com/?p=32#comment-24</guid>
		<description>This is my version of your code, I&#039;m not sure if creating the logger for each category has any huge downside or not, please let me know if you know.  I was thinking about having a static collection to persist the loggers and be able to call them up from that by name.&lt;br /&gt;&lt;br /&gt;These names allowed me to replace the old&lt;br /&gt;using Microsoft.Practices.EnterpriseLibrary.Logging;&lt;br /&gt;that we were using, with:&lt;br /&gt;using Log4netWriter;&lt;br /&gt;Then modify the Logger.Write() calls very slightly, and then was ready to log with log4net&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;namespace Log4netWriter&lt;br /&gt;{&lt;br /&gt;    public static class Logger&lt;br /&gt;    {&lt;br /&gt;        static Logger()&lt;br /&gt;        {&lt;br /&gt;            XmlConfigurator.Configure();&lt;br /&gt;        }&lt;br /&gt;&lt;br /&gt;        public static void Write(string message, string category, TraceEventType logLevel)&lt;br /&gt;        {&lt;br /&gt;            ILog Logger = LogManager.GetLogger(category);&lt;br /&gt;&lt;br /&gt;            switch (logLevel)&lt;br /&gt;            {&lt;br /&gt;                case TraceEventType.Verbose:&lt;br /&gt;                    Logger.Debug(message);&lt;br /&gt;                    break;&lt;br /&gt;                case TraceEventType.Error:&lt;br /&gt;                    Logger.Error(message);&lt;br /&gt;                    break;&lt;br /&gt;                case TraceEventType.Critical:&lt;br /&gt;                    Logger.Fatal(message);&lt;br /&gt;                    break;&lt;br /&gt;                case TraceEventType.Information:&lt;br /&gt;                    Logger.Info(message);&lt;br /&gt;                    break;&lt;br /&gt;                case TraceEventType.Warning:&lt;br /&gt;                    Logger.Warn(message);&lt;br /&gt;                    break;&lt;br /&gt;            }&lt;br /&gt;        }&lt;br /&gt;    }&lt;br /&gt;}</description>
		<content:encoded><![CDATA[<p>This is my version of your code, I&#39;m not sure if creating the logger for each category has any huge downside or not, please let me know if you know.  I was thinking about having a static collection to persist the loggers and be able to call them up from that by name.</p>
<p>These names allowed me to replace the old<br />using Microsoft.Practices.EnterpriseLibrary.Logging;<br />that we were using, with:<br />using Log4netWriter;<br />Then modify the Logger.Write() calls very slightly, and then was ready to log with log4net</p>
<p>namespace Log4netWriter<br />{<br />    public static class Logger<br />    {<br />        static Logger()<br />        {<br />            XmlConfigurator.Configure();<br />        }</p>
<p>        public static void Write(string message, string category, TraceEventType logLevel)<br />        {<br />            ILog Logger = LogManager.GetLogger(category);</p>
<p>            switch (logLevel)<br />            {<br />                case TraceEventType.Verbose:<br />                    Logger.Debug(message);<br />                    break;<br />                case TraceEventType.Error:<br />                    Logger.Error(message);<br />                    break;<br />                case TraceEventType.Critical:<br />                    Logger.Fatal(message);<br />                    break;<br />                case TraceEventType.Information:<br />                    Logger.Info(message);<br />                    break;<br />                case TraceEventType.Warning:<br />                    Logger.Warn(message);<br />                    break;<br />            }<br />        }<br />    }<br />}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://actcode.com/2009/11/net-application-logging-with-log4net-in-console-file-database/#comment-23</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Fri, 27 Nov 2009 17:53:20 +0000</pubDate>
		<guid isPermaLink="false">http://actcode.com/?p=32#comment-23</guid>
		<description>why don&#039;t you use &quot;switch case&quot; in your static &quot;WriteLog&quot; methode? just for the look :)</description>
		<content:encoded><![CDATA[<p>why don&#39;t you use &quot;switch case&quot; in your static &quot;WriteLog&quot; methode? just for the look <img src='http://actcode.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Maik</title>
		<link>http://actcode.com/2009/11/net-application-logging-with-log4net-in-console-file-database/#comment-22</link>
		<dc:creator>Maik</dc:creator>
		<pubDate>Fri, 27 Nov 2009 14:33:08 +0000</pubDate>
		<guid isPermaLink="false">http://actcode.com/?p=32#comment-22</guid>
		<description>Thx for the tutorial, nice and quick overview to get started quickly! :)</description>
		<content:encoded><![CDATA[<p>Thx for the tutorial, nice and quick overview to get started quickly! <img src='http://actcode.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
</channel>
</rss>

