<?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: Log5j and The State of Log4j Version 2</title>
	<atom:link href="http://www.techper.net/2008/03/09/log5j-and-the-state-of-log4j-version-2/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.techper.net/2008/03/09/log5j-and-the-state-of-log4j-version-2/</link>
	<description>About Technology in My Life</description>
	<pubDate>Mon, 01 Dec 2008 16:59:30 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6</generator>
		<item>
		<title>By: polesen</title>
		<link>http://www.techper.net/2008/03/09/log5j-and-the-state-of-log4j-version-2/#comment-81</link>
		<dc:creator>polesen</dc:creator>
		<pubDate>Mon, 10 Mar 2008 20:03:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.techper.net/2008/03/09/log5j-and-the-state-of-log4j-version-2/#comment-81</guid>
		<description>Hi Dimitris,

Yeah, I know, there is no class.this in the static context. And I also duplicate the classname. I have not found it a problem though, in the sense of copy-paste bugs. But it can happen, I agree. I *would* like the simple non-parameter, getLogger()-call, if I can be sure, the "one-up in the call stack" implementation always hold. That was a question!? :-)

For printf: For me, I don't care much for "log.isDebugEnabled" anymore. I used to, though. For me, printf over string concat is all about better readability of the code, now. Sure, there can be specific places where isDebugEnabled() makes sense (like an expensive loop, debugging something out), but they are rare. In my opinion. I really like having readable code, an area where printf shines more than string concat, I think.</description>
		<content:encoded><![CDATA[<p>Hi Dimitris,</p>
<p>Yeah, I know, there is no class.this in the static context. And I also duplicate the classname. I have not found it a problem though, in the sense of copy-paste bugs. But it can happen, I agree. I *would* like the simple non-parameter, getLogger()-call, if I can be sure, the &#8220;one-up in the call stack&#8221; implementation always hold. That was a question!? <img src='http://www.techper.net/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>For printf: For me, I don&#8217;t care much for &#8220;log.isDebugEnabled&#8221; anymore. I used to, though. For me, printf over string concat is all about better readability of the code, now. Sure, there can be specific places where isDebugEnabled() makes sense (like an expensive loop, debugging something out), but they are rare. In my opinion. I really like having readable code, an area where printf shines more than string concat, I think.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dimitris Andreou</title>
		<link>http://www.techper.net/2008/03/09/log5j-and-the-state-of-log4j-version-2/#comment-79</link>
		<dc:creator>Dimitris Andreou</dc:creator>
		<pubDate>Mon, 10 Mar 2008 08:35:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.techper.net/2008/03/09/log5j-and-the-state-of-log4j-version-2/#comment-79</guid>
		<description>Actually, log5j follows a recommendation of Heinz Kabutz:
http://www.javaspecialists.co.za/archive/newsletter.do?issue=137

Which is reasonable. The point is that there is no "class.this" reference to the enclosing class in java, and copy-paste problems could occur, apart from the typing of redundant information.

As for the printf, I don't know who would want to use something as slow in a logging statement. Is this a feature to have nicer printing lines or to remove the need to do this?
[code]
if (log.isInfoEnabled(...)) {
  ...
}
[code]</description>
		<content:encoded><![CDATA[<p>Actually, log5j follows a recommendation of Heinz Kabutz:<br />
<a href="http://www.javaspecialists.co.za/archive/newsletter.do?issue=137" rel="nofollow">http://www.javaspecialists.co.za/archive/newsletter.do?issue=137</a></p>
<p>Which is reasonable. The point is that there is no &#8220;class.this&#8221; reference to the enclosing class in java, and copy-paste problems could occur, apart from the typing of redundant information.</p>
<p>As for the printf, I don&#8217;t know who would want to use something as slow in a logging statement. Is this a feature to have nicer printing lines or to remove the need to do this?<br />
[code]<br />
if (log.isInfoEnabled(&#8230;)) {<br />
  &#8230;<br />
}<br />
[code]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
