<?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: Implementing a Custom ILogger for .NET Core	</title>
	<atom:link href="https://intellitect.com/blog/implementing-a-custom-ilogger-with-exception-handling-for-net-core/feed/" rel="self" type="application/rss+xml" />
	<link>https://intellitect.com/blog/implementing-a-custom-ilogger-with-exception-handling-for-net-core/</link>
	<description>Complex Software Development - Simplified</description>
	<lastBuildDate>Mon, 08 May 2023 06:47:32 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>
	<item>
		<title>
		By: Deepak Bandapati		</title>
		<link>https://intellitect.com/blog/implementing-a-custom-ilogger-with-exception-handling-for-net-core/#comment-390630</link>

		<dc:creator><![CDATA[Deepak Bandapati]]></dc:creator>
		<pubDate>Mon, 08 May 2023 06:47:32 +0000</pubDate>
		<guid isPermaLink="false">http://intellitect.com/?p=23671#comment-390630</guid>

					<description><![CDATA[thank you so much for articulating everything at one place, i just downloaded from git and started debugging and able to understand fully]]></description>
			<content:encoded><![CDATA[<p>thank you so much for articulating everything at one place, i just downloaded from git and started debugging and able to understand fully</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Erin		</title>
		<link>https://intellitect.com/blog/implementing-a-custom-ilogger-with-exception-handling-for-net-core/#comment-389611</link>

		<dc:creator><![CDATA[Erin]]></dc:creator>
		<pubDate>Wed, 26 Oct 2022 16:25:23 +0000</pubDate>
		<guid isPermaLink="false">http://intellitect.com/?p=23671#comment-389611</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://intellitect.com/blog/implementing-a-custom-ilogger-with-exception-handling-for-net-core/#comment-389100&quot;&gt;Dilip&lt;/a&gt;.

Dilip,

Mark said the approach, starting with C# 10, would be to use the CallerArgumentExpressionAttribute. He&#039;s writing a blog about this very subject that you should see on our blog in the near future. Thanks for the read!]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://intellitect.com/blog/implementing-a-custom-ilogger-with-exception-handling-for-net-core/#comment-389100">Dilip</a>.</p>
<p>Dilip,</p>
<p>Mark said the approach, starting with C# 10, would be to use the CallerArgumentExpressionAttribute. He&#8217;s writing a blog about this very subject that you should see on our blog in the near future. Thanks for the read!</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Dilip		</title>
		<link>https://intellitect.com/blog/implementing-a-custom-ilogger-with-exception-handling-for-net-core/#comment-389100</link>

		<dc:creator><![CDATA[Dilip]]></dc:creator>
		<pubDate>Tue, 20 Sep 2022 10:39:58 +0000</pubDate>
		<guid isPermaLink="false">http://intellitect.com/?p=23671#comment-389100</guid>

					<description><![CDATA[Hi,
Thanks for the nice article,
I have one question, i want to pass caller method name to log, how can i do that?]]></description>
			<content:encoded><![CDATA[<p>Hi,<br />
Thanks for the nice article,<br />
I have one question, i want to pass caller method name to log, how can i do that?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Ion		</title>
		<link>https://intellitect.com/blog/implementing-a-custom-ilogger-with-exception-handling-for-net-core/#comment-358763</link>

		<dc:creator><![CDATA[Ion]]></dc:creator>
		<pubDate>Wed, 19 Sep 2018 16:27:52 +0000</pubDate>
		<guid isPermaLink="false">http://intellitect.com/?p=23671#comment-358763</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://intellitect.com/blog/implementing-a-custom-ilogger-with-exception-handling-for-net-core/#comment-357955&quot;&gt;Chirag Bhagat&lt;/a&gt;.

string formatter(Message msg, Exception ex)
			{
				var content = $&quot;[{logLevel}]\r\n{msg.Title}\r\n{msg.Body}\r\n{msg.Author}\r\n{msg.CreatedDate}\r\n\r\n&quot;;
				return content;
			}
			log.Log(logLevel, new EventId(), message, null, (msg, ex) =&#062; formatter(msg, ex));

where Message is a custom object -&#062; in yout custom provider, &quot;TState state&quot; parameter of Log method will be your passed object]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://intellitect.com/blog/implementing-a-custom-ilogger-with-exception-handling-for-net-core/#comment-357955">Chirag Bhagat</a>.</p>
<p>string formatter(Message msg, Exception ex)<br />
			{<br />
				var content = $&#8221;[{logLevel}]\r\n{msg.Title}\r\n{msg.Body}\r\n{msg.Author}\r\n{msg.CreatedDate}\r\n\r\n&#8221;;<br />
				return content;<br />
			}<br />
			log.Log(logLevel, new EventId(), message, null, (msg, ex) =&gt; formatter(msg, ex));</p>
<p>where Message is a custom object -&gt; in yout custom provider, &#8220;TState state&#8221; parameter of Log method will be your passed object</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Chirag Bhagat		</title>
		<link>https://intellitect.com/blog/implementing-a-custom-ilogger-with-exception-handling-for-net-core/#comment-357955</link>

		<dc:creator><![CDATA[Chirag Bhagat]]></dc:creator>
		<pubDate>Thu, 07 Jun 2018 15:12:35 +0000</pubDate>
		<guid isPermaLink="false">http://intellitect.com/?p=23671#comment-357955</guid>

					<description><![CDATA[How do I pass and read custom object in the log method implementation of my custom logger?

// Write log message
myCustomLogger.LogError(&quot;My Message&quot;, customDataObject);

// Log method implementation
public void Log(...)

In other words, How do I read customDataObject in above Log method?

Thanks in advance.]]></description>
			<content:encoded><![CDATA[<p>How do I pass and read custom object in the log method implementation of my custom logger?</p>
<p>// Write log message<br />
myCustomLogger.LogError(&#8220;My Message&#8221;, customDataObject);</p>
<p>// Log method implementation<br />
public void Log(&#8230;)</p>
<p>In other words, How do I read customDataObject in above Log method?</p>
<p>Thanks in advance.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Shane C		</title>
		<link>https://intellitect.com/blog/implementing-a-custom-ilogger-with-exception-handling-for-net-core/#comment-357701</link>

		<dc:creator><![CDATA[Shane C]]></dc:creator>
		<pubDate>Tue, 15 May 2018 18:34:25 +0000</pubDate>
		<guid isPermaLink="false">http://intellitect.com/?p=23671#comment-357701</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://intellitect.com/blog/implementing-a-custom-ilogger-with-exception-handling-for-net-core/#comment-356394&quot;&gt;Doug Olson&lt;/a&gt;.

Agreed.. this doesn&#039;t actually improve on the original at all.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://intellitect.com/blog/implementing-a-custom-ilogger-with-exception-handling-for-net-core/#comment-356394">Doug Olson</a>.</p>
<p>Agreed.. this doesn&#8217;t actually improve on the original at all.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Doug Olson		</title>
		<link>https://intellitect.com/blog/implementing-a-custom-ilogger-with-exception-handling-for-net-core/#comment-356394</link>

		<dc:creator><![CDATA[Doug Olson]]></dc:creator>
		<pubDate>Thu, 11 Jan 2018 22:14:28 +0000</pubDate>
		<guid isPermaLink="false">http://intellitect.com/?p=23671#comment-356394</guid>

					<description><![CDATA[How does this handle exceptions? I was kind of thinking that CustomLogger.Log() would implement try/catch logic to handle exceptions.]]></description>
			<content:encoded><![CDATA[<p>How does this handle exceptions? I was kind of thinking that CustomLogger.Log() would implement try/catch logic to handle exceptions.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: ramanathan		</title>
		<link>https://intellitect.com/blog/implementing-a-custom-ilogger-with-exception-handling-for-net-core/#comment-299731</link>

		<dc:creator><![CDATA[ramanathan]]></dc:creator>
		<pubDate>Thu, 30 Jun 2016 12:58:37 +0000</pubDate>
		<guid isPermaLink="false">http://intellitect.com/?p=23671#comment-299731</guid>

					<description><![CDATA[I&#039;m interested to learn coustom logger stored at mongodb]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m interested to learn coustom logger stored at mongodb</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Bob Mossanen		</title>
		<link>https://intellitect.com/blog/implementing-a-custom-ilogger-with-exception-handling-for-net-core/#comment-298941</link>

		<dc:creator><![CDATA[Bob Mossanen]]></dc:creator>
		<pubDate>Sun, 26 Jun 2016 17:18:48 +0000</pubDate>
		<guid isPermaLink="false">http://intellitect.com/?p=23671#comment-298941</guid>

					<description><![CDATA[I want to implement Ilogger for any third party logger such as Nlog or Log4net]]></description>
			<content:encoded><![CDATA[<p>I want to implement Ilogger for any third party logger such as Nlog or Log4net</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Jorge Eyner Arevalo Arica		</title>
		<link>https://intellitect.com/blog/implementing-a-custom-ilogger-with-exception-handling-for-net-core/#comment-274491</link>

		<dc:creator><![CDATA[Jorge Eyner Arevalo Arica]]></dc:creator>
		<pubDate>Fri, 06 May 2016 16:25:56 +0000</pubDate>
		<guid isPermaLink="false">http://intellitect.com/?p=23671#comment-274491</guid>

					<description><![CDATA[I need to learn about Ilogger]]></description>
			<content:encoded><![CDATA[<p>I need to learn about Ilogger</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
