<?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: Using log4net in Web Applications &#8211; a real-life example</title>
	<atom:link href="http://hamang.net/2008/12/12/using-log4net-in-web-applications-a-reallife-example/feed/" rel="self" type="application/rss+xml" />
	<link>http://hamang.net/2008/12/12/using-log4net-in-web-applications-a-reallife-example/</link>
	<description>- the everyday life</description>
	<lastBuildDate>Mon, 14 May 2012 20:53:03 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.4</generator>
	<item>
		<title>By: FAITH</title>
		<link>http://hamang.net/2008/12/12/using-log4net-in-web-applications-a-reallife-example/comment-page-1/#comment-41238</link>
		<dc:creator>FAITH</dc:creator>
		<pubDate>Mon, 26 Sep 2011 14:53:51 +0000</pubDate>
		<guid isPermaLink="false">http://hamang.net/?p=164#comment-41238</guid>
		<description>Love the way you code vb, I havent seen this kind of beauty since the long lost days.</description>
		<content:encoded><![CDATA[<p>Love the way you code vb, I havent seen this kind of beauty since the long lost days.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rick</title>
		<link>http://hamang.net/2008/12/12/using-log4net-in-web-applications-a-reallife-example/comment-page-1/#comment-35355</link>
		<dc:creator>rick</dc:creator>
		<pubDate>Thu, 18 Aug 2011 05:38:08 +0000</pubDate>
		<guid isPermaLink="false">http://hamang.net/?p=164#comment-35355</guid>
		<description>Hello.
Your article is very helpful.
But I still have some problem.

My website have several application running under iis.

&#124;-Site_Root
&#124;----App1
&#124;----App2
&#124;----...
&#124;----web.config

I added log4net configuration in the web.config just as you suggest. There&#039;s a log4net.dll in every app&#039;s bin folder. But this doesn&#039;t work.

If I put a web.config in every app&#039;s folder with log4net section in it, logs will be output properly. But I do want all apps can share the root web.config log4net configuration.

Do you have any idea?</description>
		<content:encoded><![CDATA[<p>Hello.<br />
Your article is very helpful.<br />
But I still have some problem.</p>
<p>My website have several application running under iis.</p>
<p>|-Site_Root<br />
|&#8212;-App1<br />
|&#8212;-App2<br />
|&#8212;-&#8230;<br />
|&#8212;-web.config</p>
<p>I added log4net configuration in the web.config just as you suggest. There&#039;s a log4net.dll in every app&#039;s bin folder. But this doesn&#039;t work.</p>
<p>If I put a web.config in every app&#039;s folder with log4net section in it, logs will be output properly. But I do want all apps can share the root web.config log4net configuration.</p>
<p>Do you have any idea?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kaushal</title>
		<link>http://hamang.net/2008/12/12/using-log4net-in-web-applications-a-reallife-example/comment-page-1/#comment-19897</link>
		<dc:creator>Kaushal</dc:creator>
		<pubDate>Fri, 18 Feb 2011 09:35:18 +0000</pubDate>
		<guid isPermaLink="false">http://hamang.net/?p=164#comment-19897</guid>
		<description>Ok. I got solution for the query i&#039;ve asked before.
Here&#039;s the solution 

In Log4Net configuration, Instead of putting filename, i&#039;ve put placeholder for property name as below.


      
        


In my Log Class

 Logger = LogManager.GetLogger(typeof(Class1));

 //Do Impersonation to write files on Shared drive having access to Globalcv user.
//DoImpersonationIfRequired();

                    log4net.GlobalContext.Properties[&quot;LogName&quot;] = ConfigurationHelper.LogFileName.ToString();
                    //Configuring Object
                    XmlConfigurator.Configure();


Thanks,
Kaushal</description>
		<content:encoded><![CDATA[<p>Ok. I got solution for the query i&#039;ve asked before.<br />
Here&#039;s the solution </p>
<p>In Log4Net configuration, Instead of putting filename, i&#039;ve put placeholder for property name as below.</p>
<p>In my Log Class</p>
<p> Logger = LogManager.GetLogger(typeof(Class1));</p>
<p> //Do Impersonation to write files on Shared drive having access to Globalcv user.<br />
//DoImpersonationIfRequired();</p>
<p>                    log4net.GlobalContext.Properties["LogName"] = ConfigurationHelper.LogFileName.ToString();<br />
                    //Configuring Object<br />
                    XmlConfigurator.Configure();</p>
<p>Thanks,<br />
Kaushal</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kaushal</title>
		<link>http://hamang.net/2008/12/12/using-log4net-in-web-applications-a-reallife-example/comment-page-1/#comment-19601</link>
		<dc:creator>Kaushal</dc:creator>
		<pubDate>Wed, 09 Feb 2011 06:02:29 +0000</pubDate>
		<guid isPermaLink="false">http://hamang.net/?p=164#comment-19601</guid>
		<description>My website is running under asp.net user under IIS. In that i&#039;ve created one virtual directory as &#039;Logs&#039; which is internally pointing to my shared drive folder which is access by limited no. of users. Now my question is, how can i create log file on shared folder using log4Net. Is there anyway by which, i&#039;ll provide user credentials when i create object of logger &amp; create file or write log information on shared folder.

Regards,
Kaushal</description>
		<content:encoded><![CDATA[<p>My website is running under asp.net user under IIS. In that i&#039;ve created one virtual directory as &#039;Logs&#039; which is internally pointing to my shared drive folder which is access by limited no. of users. Now my question is, how can i create log file on shared folder using log4Net. Is there anyway by which, i&#039;ll provide user credentials when i create object of logger &amp; create file or write log information on shared folder.</p>
<p>Regards,<br />
Kaushal</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Haider</title>
		<link>http://hamang.net/2008/12/12/using-log4net-in-web-applications-a-reallife-example/comment-page-1/#comment-17545</link>
		<dc:creator>Haider</dc:creator>
		<pubDate>Thu, 13 Jan 2011 04:37:46 +0000</pubDate>
		<guid isPermaLink="false">http://hamang.net/?p=164#comment-17545</guid>
		<description>Thanks for your great information. 
I am using log4net but in my case isDebugEnabled , IsErrorEnabled etc remain always false. I have searched a lot but nothing could be found.
I am using the below code.
===============================================
Private Shared isDebugEnabled As Boolean = log.IsDebugEnabled

If isDebugEnabled Then
    log4net.Config.XmlConfigurator.Configure()
        log.Debug(&quot;This is debug&quot;)
End If
================================================
Please guide me, I am tired after much searching.</description>
		<content:encoded><![CDATA[<p>Thanks for your great information.<br />
I am using log4net but in my case isDebugEnabled , IsErrorEnabled etc remain always false. I have searched a lot but nothing could be found.<br />
I am using the below code.<br />
===============================================<br />
Private Shared isDebugEnabled As Boolean = log.IsDebugEnabled</p>
<p>If isDebugEnabled Then<br />
    log4net.Config.XmlConfigurator.Configure()<br />
        log.Debug(&#034;This is debug&#034;)<br />
End If<br />
================================================<br />
Please guide me, I am tired after much searching.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Venkatesh</title>
		<link>http://hamang.net/2008/12/12/using-log4net-in-web-applications-a-reallife-example/comment-page-1/#comment-10991</link>
		<dc:creator>Venkatesh</dc:creator>
		<pubDate>Tue, 12 Oct 2010 21:18:48 +0000</pubDate>
		<guid isPermaLink="false">http://hamang.net/?p=164#comment-10991</guid>
		<description>Wow!!!,

Super, this is what I was looking for. Thank you!!, I guess I am becoming lazy day by day. 
Sharing the knowledge is so easy now a days. Is it good or bad? It is really gooooooooooooooood.</description>
		<content:encoded><![CDATA[<p>Wow!!!,</p>
<p>Super, this is what I was looking for. Thank you!!, I guess I am becoming lazy day by day.<br />
Sharing the knowledge is so easy now a days. Is it good or bad? It is really gooooooooooooooood.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ck</title>
		<link>http://hamang.net/2008/12/12/using-log4net-in-web-applications-a-reallife-example/comment-page-1/#comment-8589</link>
		<dc:creator>ck</dc:creator>
		<pubDate>Mon, 12 Apr 2010 08:16:05 +0000</pubDate>
		<guid isPermaLink="false">http://hamang.net/?p=164#comment-8589</guid>
		<description>2008-12-11 16:59:21,406 [14] INFO  Application (null) (null)
is anyone know what mean by [14] in the above logs?</description>
		<content:encoded><![CDATA[<p>2008-12-11 16:59:21,406 [14] INFO  Application (null) (null)<br />
is anyone know what mean by [14] in the above logs?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alessandro</title>
		<link>http://hamang.net/2008/12/12/using-log4net-in-web-applications-a-reallife-example/comment-page-1/#comment-6172</link>
		<dc:creator>Alessandro</dc:creator>
		<pubDate>Mon, 16 Nov 2009 16:16:45 +0000</pubDate>
		<guid isPermaLink="false">http://hamang.net/?p=164#comment-6172</guid>
		<description>do you have the example using C#?

Thanks</description>
		<content:encoded><![CDATA[<p>do you have the example using C#?</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nitin Reddy</title>
		<link>http://hamang.net/2008/12/12/using-log4net-in-web-applications-a-reallife-example/comment-page-1/#comment-152</link>
		<dc:creator>Nitin Reddy</dc:creator>
		<pubDate>Thu, 25 Dec 2008 17:27:26 +0000</pubDate>
		<guid isPermaLink="false">http://hamang.net/?p=164#comment-152</guid>
		<description>Hi!

I&#039;m a pretty big fan of Log4Net, but what I do find limiting is that there isn&#039;t anything in most logging framework that will let me define a custom structure for logging so the data stored can be easily queried later.

I mean, when you&#039;ve got millions of log entries, you&#039;ve either got to read through them all or write an insanely powerful text processor. Instead, if you use custom logging you can simply filter the entries by a database column value (assuming you are logging to a DB)

-Nitin</description>
		<content:encoded><![CDATA[<p>Hi!</p>
<p>I&#039;m a pretty big fan of Log4Net, but what I do find limiting is that there isn&#039;t anything in most logging framework that will let me define a custom structure for logging so the data stored can be easily queried later.</p>
<p>I mean, when you&#039;ve got millions of log entries, you&#039;ve either got to read through them all or write an insanely powerful text processor. Instead, if you use custom logging you can simply filter the entries by a database column value (assuming you are logging to a DB)</p>
<p>-Nitin</p>
]]></content:encoded>
	</item>
</channel>
</rss>

