<?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"
	>
<channel>
	<title>Comments on: Static v Non-static loggers</title>
	<atom:link href="http://skizz.biz/blog/2003/06/19/static-v-non-static-loggers/feed/" rel="self" type="application/rss+xml" />
	<link>http://skizz.biz/blog/2003/06/19/static-v-non-static-loggers/</link>
	<description>Chris Stevenson's blog</description>
	<pubDate>Fri, 10 Sep 2010 03:16:29 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6</generator>
		<item>
		<title>By: Sam Newman</title>
		<link>http://skizz.biz/blog/2003/06/19/static-v-non-static-loggers/#comment-32</link>
		<dc:creator>Sam Newman</dc:creator>
		<pubDate>Fri, 05 Sep 2003 04:14:00 +0000</pubDate>
		<guid isPermaLink="false">http://skizz.biz/blog/2003/06/19/static-v-non-static-loggers/#comment-32</guid>
		<description>Instance-specific loggers do have a place, where their very individuality imparts on the nature of the logging. To take a trivial example, imagine an instance specific logger used in a User class. Here, all messages logged could automatically log user information along with the messages. This might of course be overkill, but you get my point I hope :-) That said, I've never yet needed to use an object-level logger!
</description>
		<content:encoded><![CDATA[<p>Instance-specific loggers do have a place, where their very individuality imparts on the nature of the logging. To take a trivial example, imagine an instance specific logger used in a User class. Here, all messages logged could automatically log user information along with the messages. This might of course be overkill, but you get my point I hope :-) That said, I&#8217;ve never yet needed to use an object-level logger!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ade</title>
		<link>http://skizz.biz/blog/2003/06/19/static-v-non-static-loggers/#comment-31</link>
		<dc:creator>ade</dc:creator>
		<pubDate>Sun, 22 Jun 2003 03:54:00 +0000</pubDate>
		<guid isPermaLink="false">http://skizz.biz/blog/2003/06/19/static-v-non-static-loggers/#comment-31</guid>
		<description>Try this variation on the template idea instead:
private static final Logger log = Logger.getLogger("${enclosing_package}.${enclosing_type}");
The difference is that your loggers end up using the fully qualified name.</description>
		<content:encoded><![CDATA[<p>Try this variation on the template idea instead:<br />
private static final Logger log = Logger.getLogger(&#8221;${enclosing_package}.${enclosing_type}&#8221;);<br />
The difference is that your loggers end up using the fully qualified name.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ryan Breidenbach</title>
		<link>http://skizz.biz/blog/2003/06/19/static-v-non-static-loggers/#comment-30</link>
		<dc:creator>Ryan Breidenbach</dc:creator>
		<pubDate>Thu, 19 Jun 2003 21:01:00 +0000</pubDate>
		<guid isPermaLink="false">http://skizz.biz/blog/2003/06/19/static-v-non-static-loggers/#comment-30</guid>
		<description>Greg - I hope you are joking about that stack trace parsing ;-) Yuck!
Here, we use Eclipse and we just added a Template to cover this: Preferences -&gt; Java -&gt; Editor -&gt; Templates. We created one with the name "logger" and pattern "private static final Logger LOGGER = Logger.getLogger(${enclosing_type}.class);" Now, any time we want to add a logger to a class, we just type logger and hit Ctrl + Space and viola! Most decent IDEs will let you do this.
Ryan</description>
		<content:encoded><![CDATA[<p>Greg - I hope you are joking about that stack trace parsing ;-) Yuck!<br />
Here, we use Eclipse and we just added a Template to cover this: Preferences -> Java -> Editor -> Templates. We created one with the name &#8220;logger&#8221; and pattern &#8220;private static final Logger LOGGER = Logger.getLogger(${enclosing_type}.class);&#8221; Now, any time we want to add a logger to a class, we just type logger and hit Ctrl + Space and viola! Most decent IDEs will let you do this.<br />
Ryan</p>
]]></content:encoded>
	</item>
</channel>
</rss>
