Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!newsfeed.straub-nv.de!news-1.dfn.de!news.dfn.de!news.informatik.hu-berlin.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Robert Klemme Newsgroups: comp.lang.java.programmer Subject: Re: Question about loggers Date: Fri, 09 Mar 2012 20:29:06 +0100 Lines: 35 Message-ID: <9rv402Fm7U1@mid.individual.net> References: <4f57de3b$0$286$14726298@news.sunsite.dk> <4f57fc25$0$290$14726298@news.sunsite.dk> <29668555.311.1331223311031.JavaMail.geo-discussion-forums@vbbfv2> <17863687.969.1331305893320.JavaMail.geo-discussion-forums@vblb5> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: individual.net VtPOBe0p8Y/05T8FKRRsMwcebu8cEFYSKERvK3qyOLm08KSQ0= Cancel-Lock: sha1:waS+jirtUylfUdptbDBV2uqXhIU= User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:9.0) Gecko/20111222 Thunderbird/9.0.1 In-Reply-To: X-Antivirus: avast! (VPS 120309-0, 09.03.2012), Outbound message X-Antivirus-Status: Clean Xref: csiph.com comp.lang.java.programmer:12815 On 09.03.2012 16:54, markspace wrote: >> Robert Klemme wrote: >>> http://commons.apache.org/logging/guide.html >>> >>> Truth is that static loggers are recommended for application code; >>> only for library code they recommend against static loggers. > > By "application" do you mean JEE app or desktop app? It's not me! I am just quoting. Please read what they write. > Either way, I don't understand your assertion. Why would static vs. > instance make any difference in a library, assuming no shared or other > special classloaders are in use? Again: it's not my assertion. You were the one who brought up best practices from Apache Commons: On 08.03.2012 19:05, markspace wrote: > Also be aware that while static loggers are common in Java in general, > instance loggers are recommended best practice according the the Apache > Commons website. I was just pointing out that what you claimed Apache Commons best practices is (instance loggers as _general_ best practice) is not what they are actually stating (instance loggers for _library code_). Cheers robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/