On Thursday, April 18, 2002, at 03:10  PM, Chris Kimpton wrote:

>
>> David Sean Taylor wrote:
>>
>>>> Use Log.getLogger().isDebugEnabled() for the default logger.
>>>>
>>>
>>> I propose that we use this convention for all logging.
>
>
> +1
>
>
> I was going to argue that the performance gain on a simple string log
> would be minimal - versus the ease of reading the code - until I
> tried it...
>
> There was no performance gain - and when you do any calculations in
> the logging message, it gets really slow - 100 times slower!

with this test done (thanks, Chris!), that clinches it for me!

Here's my first official vote!

+1

- Glenn

---------------------------------------------------------------------
Glenn R. Golden    Systems Research Programmer
School of Information             University of Michigan
[EMAIL PROTECTED]                            734-615-1419
---------------------------------------------------------------------


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to