Am Samstag, den 18.11.2006, 08:53 +0000 schrieb robert burrell donkin:

> > Imho it is really interesting to see that in jdk 1.5 the string
> > concatenation is replaced by StringBuilder by default and this way is
> > even better than using the StringBuffer.
> 
> perhaps one plan would be to factor out logging calls into a
> JamesLogEnabled class. the idea would be abstract all logging calls
> into a superclass. this would perform a null check on the logger and
> the isXXXEnabled. it would also provide pre-parameterized calls:
> 
> info(Object one)
> info(Object one, Object two)
> ...

Without even valuating your solution: I can't see the problem you're
trying to solve.
Why should we do optimization when there is not a known measurable
performance enhancement?
What does it cost doing just log.info("My message from "+ip); ?

> since IMAP uses an experimental logging scheme and i'm having to add
> lots of logging to understand my email issues, maybe i'll add
> something along those lines to my local version...

I wouldn't call the logging in IMAP "experimental" it's just a bit
incomplete and inconsistent. :-)

Joachim


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

Reply via email to