All,

LogLog is a very cool thing, and allows a central, standard way
to log messages from withing log4j components.  However, it seems
that it lacks the standard Category behavior which allows checking
of logging priority.  This functionality should be included so
logging lines which do string concatination could be guarded by
tests for that priority level.  In other words:

The innefecient line:
LogLog.debug("The value was: " + myValue.toSting() + " and " +
foo.value1);

would be guarded like this:
if(LogLog.isEnabledFor(Priority.DEBUG))
{
   LogLog.debug("The value was: " + myValue.toSting() + " and " +
foo.value1);
}

Any one else have thoughts on this?  Perhaps LogLog should just be a
special
subclass of Category....

I would be happy to submit some modifications like this, but I thought I
would
bounce it off here first.

|)ave
begin:vcard 
n:Owens;David
tel;pager:1-888-923-5329
tel;work:(303)595-2537
x-mozilla-html:FALSE
org:Synxis;Interface
adr:;;;;;;
version:2.1
email;internet:[EMAIL PROTECTED]
title:Software Engineer
x-mozilla-cpt:;0
fn:Dave O.
end:vcard

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

Reply via email to