<?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: WCF Error Handling with log4net</title>
	<atom:link href="http://taswar.zeytinsoft.com/2009/02/26/wcf-error-handling-with-log4net/feed/" rel="self" type="application/rss+xml" />
	<link>http://taswar.zeytinsoft.com/2009/02/26/wcf-error-handling-with-log4net/</link>
	<description>The synonyms of software simplicity</description>
	<lastBuildDate>Thu, 22 Dec 2011 14:11:10 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
	<item>
		<title>By: taswar</title>
		<link>http://taswar.zeytinsoft.com/2009/02/26/wcf-error-handling-with-log4net/comment-page-1/#comment-18</link>
		<dc:creator>taswar</dc:creator>
		<pubDate>Fri, 09 Jul 2010 15:27:37 +0000</pubDate>
		<guid isPermaLink="false">http://taswar.zeytinsoft.com/?p=6#comment-18</guid>
		<description>One can initialize the logger by an IoC container (StructureMap, Ninject, Windsor, or a ServiceLocator etc etc) or just in code like in your Attribute
private static readonly ILog log = LogManager.GetLogger(
  System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);

and then if you wish to log it as an error just use
log.Error(&quot;Service failed : &quot; + ex.Message);

inside your HandleError call, if you wish for it to be debug just call log.debug its up to you.</description>
		<content:encoded><![CDATA[<p>One can initialize the logger by an IoC container (StructureMap, Ninject, Windsor, or a ServiceLocator etc etc) or just in code like in your Attribute<br />
private static readonly ILog log = LogManager.GetLogger(<br />
  System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);</p>
<p>and then if you wish to log it as an error just use<br />
log.Error(&#8220;Service failed : &#8221; + ex.Message);</p>
<p>inside your HandleError call, if you wish for it to be debug just call log.debug its up to you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Thomas</title>
		<link>http://taswar.zeytinsoft.com/2009/02/26/wcf-error-handling-with-log4net/comment-page-1/#comment-17</link>
		<dc:creator>Thomas</dc:creator>
		<pubDate>Fri, 09 Jul 2010 08:42:42 +0000</pubDate>
		<guid isPermaLink="false">http://taswar.zeytinsoft.com/?p=6#comment-17</guid>
		<description>This looks like a very nice way to do it, good job :)
I&#039;m also using log4net (but without a wrapper..), and have a question: 
- where do you initialize the logger? And wich Type do you supply?
- If I log inside HandleError, does log4net show the correct type?</description>
		<content:encoded><![CDATA[<p>This looks like a very nice way to do it, good job <img src='http://taswar.zeytinsoft.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
I&#8217;m also using log4net (but without a wrapper..), and have a question:<br />
- where do you initialize the logger? And wich Type do you supply?<br />
- If I log inside HandleError, does log4net show the correct type?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: taswar</title>
		<link>http://taswar.zeytinsoft.com/2009/02/26/wcf-error-handling-with-log4net/comment-page-1/#comment-11</link>
		<dc:creator>taswar</dc:creator>
		<pubDate>Mon, 19 Oct 2009 13:07:05 +0000</pubDate>
		<guid isPermaLink="false">http://taswar.zeytinsoft.com/?p=6#comment-11</guid>
		<description>No problem you are welcome.</description>
		<content:encoded><![CDATA[<p>No problem you are welcome.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kulwinder Singh</title>
		<link>http://taswar.zeytinsoft.com/2009/02/26/wcf-error-handling-with-log4net/comment-page-1/#comment-10</link>
		<dc:creator>Kulwinder Singh</dc:creator>
		<pubDate>Sun, 18 Oct 2009 07:09:42 +0000</pubDate>
		<guid isPermaLink="false">http://taswar.zeytinsoft.com/?p=6#comment-10</guid>
		<description>This article is very helpfull.. Thank for posting such a nice stuff.

Thanks,
Kulwinder</description>
		<content:encoded><![CDATA[<p>This article is very helpfull.. Thank for posting such a nice stuff.</p>
<p>Thanks,<br />
Kulwinder</p>
]]></content:encoded>
	</item>
</channel>
</rss>

