RE: PatternLayout docs

2003-09-30 Thread Ceki Gülcü
Thanks for the heads up. Here is a possible workaround: public StringBuffer convert(LoggingEvent event) { if(buf.capacity() > 64) { buf = new StringBuffer(5); } else { buf.setLength(0); } return buf.append(String.valueOf(++counter)); } At 04:05 PM 9/29/2003 -0400,

RE: PatternLayout docs

2003-09-29 Thread Paul Smith
On Tue, 2003-09-30 at 06:05, Shapira, Yoav wrote: > Howdy, > One minor question: isn't the example CountingPatternConverter using StringBuffer in > a way that causes the bad memory leak documented in Bug Parade 4724129? > (http://developer.java.sun.com/developer/bugParade/bugs/4724129.html) > H

RE: PatternLayout docs

2003-09-29 Thread Shapira, Yoav
Howdy, One minor question: isn't the example CountingPatternConverter using StringBuffer in a way that causes the bad memory leak documented in Bug Parade 4724129? (http://developer.java.sun.com/developer/bugParade/bugs/4724129.html) If so, we should add a little note in the code telling users