<?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: The Toolbox: Introduction &#038; Log4J</title>
	<atom:link href="http://www.efsavage.com/blog/posts/toolbox_log4j/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.efsavage.com/blog/posts/toolbox_log4j/</link>
	<description>Good stuff, updated weekly(ish)</description>
	<pubDate>Wed, 19 Nov 2008 05:07:52 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6</generator>
		<item>
		<title>By: ilatypov</title>
		<link>http://www.efsavage.com/blog/posts/toolbox_log4j/#comment-4968</link>
		<dc:creator>ilatypov</dc:creator>
		<pubDate>Thu, 26 Jul 2007 19:02:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.efsavage.com/blog/?p=4#comment-4968</guid>
		<description>Forgot to wrap the LazyLog.debug() body into the isDebugEnabled() check.</description>
		<content:encoded><![CDATA[<p>Forgot to wrap the LazyLog.debug() body into the isDebugEnabled() check.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ilatypov</title>
		<link>http://www.efsavage.com/blog/posts/toolbox_log4j/#comment-4967</link>
		<dc:creator>ilatypov</dc:creator>
		<pubDate>Thu, 26 Jul 2007 17:56:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.efsavage.com/blog/?p=4#comment-4967</guid>
		<description>Someone else pointed out that lazy reads are simple to implement by relying on objects' toString() methods and variable argument list.

   lazyLog.debug("Found ", person);

where LazyLog.debug() simply concatenates its parameters.  The following explanation was not tested.

  public void debug(Object ... params) {
    StringBuffer sb = new StringBuffer();
    for (Object param: params) {
      sb.append(param);
    }
    log.debug(sb);
  }</description>
		<content:encoded><![CDATA[<p>Someone else pointed out that lazy reads are simple to implement by relying on objects&#8217; toString() methods and variable argument list.</p>
<p>   lazyLog.debug(&#8221;Found &#8220;, person);</p>
<p>where LazyLog.debug() simply concatenates its parameters.  The following explanation was not tested.</p>
<p>  public void debug(Object &#8230; params) {<br />
    StringBuffer sb = new StringBuffer();<br />
    for (Object param: params) {<br />
      sb.append(param);<br />
    }<br />
    log.debug(sb);<br />
  }</p>
]]></content:encoded>
	</item>
</channel>
</rss>
