> Why does the logger force you to use Strings?
no body is forced to log *strings* have a look at the signature of
Logger.info():
public void info(Object message)
so use StringBuffers (or if using java1.5 StringBuilder) if you like to.
however IMHO your code is generating unnecessary String objects as well.
> // to log a new message
> buf.clear();
> buf.append("some string here");
this creates a String object on every call as well...
it's the same as:
buf.append(new String("some string here"));
> buf.append(someValue);
> logger.info(buf);
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]