<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Log4net on Dr. Hitesh Sarda</title>
		<link>https://hitesh.in/tags/log4net/</link>
		<description>Recent content in Log4net on Dr. Hitesh Sarda</description>
		<generator>Hugo</generator>
		<language>en-US</language>
		
		
		
		
			<lastBuildDate>Sat, 06 Mar 2010 00:00:00 +0000</lastBuildDate>
		
			<atom:link href="https://hitesh.in/tags/log4net/index.xml" rel="self" type="application/rss+xml" />
			<item>
				<title>Adding context to your logs</title>
				<link>https://hitesh.in/2010/adding-context-to-your-logs/</link>
				<pubDate>Sat, 06 Mar 2010 00:00:00 +0000</pubDate>
				<guid>https://hitesh.in/2010/adding-context-to-your-logs/</guid>
				<description>&lt;p&gt;[caption id=&amp;quot;&amp;quot; align=&amp;ldquo;alignright&amp;rdquo; width=&amp;ldquo;316&amp;rdquo; caption=&amp;ldquo;joysaphine @ flickr&amp;rdquo;]&lt;a href=&#34;http://www.flickr.com/photos/joysaphine/4366947275/&#34;&gt;&lt;img src=&#34;https://hitesh.in/2010/adding-context-to-your-logs/images/4366947275_0327144c7b.jpg&#34; alt=&#34;&#34; title=&#34;Logs with markings&#34; width=&#34;500&#34; height=&#34;375&#34; loading=&#34;lazy&#34; decoding=&#34;async&#34;&gt;&lt;/a&gt;[/caption]&lt;/p&gt;&#xA;&lt;p&gt;If you have ever worked on a multi-threaded application or even any application of significant scope, one of the unwritten requirement is a log file that helps in supporting the application.&lt;/p&gt;&#xA;&lt;p&gt;The challenge is to be able to piece together all the scattered log entries that belong together, may be as a single transaction, or a user&amp;rsquo;s session. So the goal is to have a unique identifier in each log entry that will aid &lt;em&gt;greping.&lt;/em&gt; If you have ever faced this, you either did it cleanly as I will detail below, or you had to hack in a &amp;lsquo;context&amp;rsquo; to each log entry by appending / prefixing some unique id.&lt;/p&gt;</description>
			</item>
	</channel>
</rss>
