Felix Meschberger  wrote
> Hi,
> 
> On 23.08.2010 17:50, [email protected] wrote:
>> Author: cziegeler
>> Date: Mon Aug 23 15:50:51 2010
>> New Revision: 988161
>>
>> URL: http://svn.apache.org/viewvc?rev=988161&view=rev
>> Log:
>> Use static loggers for data objects
> 
> Is there a particular reason for making the GC work harder ?
> 
Yes, otherwise it might get bored and throw some random exception :)

I think we discussed this a long time ago and agreed that we use static
loggers for data objects where we expect a lot of objects to be created
and garbage collected; we already have this for several of such classes
but we never changed this one.

So basically the rule was a non static logger for services and
components and static loggers for data objects. Of course we can revisit
this and use non static loggers - but whatever we do, we should be
consistent (or at least try to) :)

Carsten
-- 
Carsten Ziegeler
[email protected]

Reply via email to