/** * Formats a logging event to a writer. * @param event logging event to be formatted. */ public String format(final LoggingEvent event) { StringBuffer buf = new StringBuffer(); for(PatternConverter c = head; c != null; c = c.next) { c.format(buf, event); } return buf.toString(); }
/** Produces a formatted string as specified by the conversion pattern. */ public String format(LoggingEvent event) { // Reset working stringbuffer if(sbuf.capacity() > MAX_CAPACITY) { sbuf = new StringBuffer(BUF_SIZE); } else { sbuf.setLength(0); } PatternConverter c = head; while(c != null) { c.format(sbuf, event); c = c.next; } return sbuf.toString(); } }
/** * Formats a logging event to a writer. * @param event logging event to be formatted. */ public String format(final LoggingEvent event) { StringBuffer buf = new StringBuffer(); for(PatternConverter c = head; c != null; c = c.next) { c.format(buf, event); } return buf.toString(); }
/** Produces a formatted string as specified by the conversion pattern. */ public String format(LoggingEvent event) { // Reset working stringbuffer if(sbuf.capacity() > MAX_CAPACITY) { sbuf = new StringBuffer(BUF_SIZE); } else { sbuf.setLength(0); } PatternConverter c = head; while(c != null) { c.format(sbuf, event); c = c.next; } return sbuf.toString(); } }
/** Produces a formatted string as specified by the conversion pattern. */ public String format(LoggingEvent event) { // Reset working stringbuffer if(sbuf.capacity() > MAX_CAPACITY) { sbuf = new StringBuffer(BUF_SIZE); } else { sbuf.setLength(0); } PatternConverter c = head; while(c != null) { c.format(sbuf, event); c = c.next; } return sbuf.toString(); } }
/** * Formats a logging event to a writer. * @param event logging event to be formatted. */ public String format(final LoggingEvent event) { StringBuffer buf = new StringBuffer(); for(PatternConverter c = head; c != null; c = c.next) { c.format(buf, event); } return buf.toString(); }
/** * Formats a logging event to a writer. * @param event logging event to be formatted. */ public String format(final LoggingEvent event) { StringBuffer buf = new StringBuffer(); for(PatternConverter c = head; c != null; c = c.next) { c.format(buf, event); } return buf.toString(); }
/** * Formats a logging event to a writer. * @param event logging event to be formatted. */ public String format(final LoggingEvent event) { StringBuffer buf = new StringBuffer(); for(PatternConverter c = head; c != null; c = c.next) { c.format(buf, event); } return buf.toString(); }
/** * Formats a logging event to a writer. * @param event logging event to be formatted. */ public String format(final LoggingEvent event) { StringBuffer buf = new StringBuffer(); for(PatternConverter c = head; c != null; c = c.next) { c.format(buf, event); } return buf.toString(); }
/** Produces a formatted string as specified by the conversion pattern. */ public String format(LoggingEvent event) { // Reset working stringbuffer if(sbuf.capacity() > MAX_CAPACITY) { sbuf = new StringBuffer(BUF_SIZE); } else { sbuf.setLength(0); } PatternConverter c = head; while(c != null) { c.format(sbuf, event); c = c.next; } return sbuf.toString(); } }
/** Produces a formatted string as specified by the conversion pattern. */ public String format(LoggingEvent event) { // Reset working stringbuffer if(sbuf.capacity() > MAX_CAPACITY) { sbuf = new StringBuffer(BUF_SIZE); } else { sbuf.setLength(0); } PatternConverter c = head; while(c != null) { c.format(sbuf, event); c = c.next; } return sbuf.toString(); } }
/** Produces a formatted string as specified by the conversion pattern. */ public String format(LoggingEvent event) { // Reset working stringbuffer if(sbuf.capacity() > MAX_CAPACITY) { sbuf = new StringBuffer(BUF_SIZE); } else { sbuf.setLength(0); } PatternConverter c = head; while(c != null) { c.format(sbuf, event); c = c.next; } return sbuf.toString(); } }
/** Produces a formatted string as specified by the conversion pattern. */ public String format(LoggingEvent event) { // Reset working stringbuffer if(sbuf.capacity() > MAX_CAPACITY) { sbuf = new StringBuffer(BUF_SIZE); } else { sbuf.setLength(0); } PatternConverter c = head; while(c != null) { c.format(sbuf, event); c = c.next; } return sbuf.toString(); } }
/** Produces a formatted string as specified by the conversion pattern. */ public String format(LoggingEvent event) { // Reset working stringbuffer if(sbuf.capacity() > MAX_CAPACITY) { sbuf = new StringBuffer(BUF_SIZE); } else { sbuf.setLength(0); } PatternConverter c = head; while(c != null) { c.format(sbuf, event); c = c.next; } return sbuf.toString(); } }
/** Produces a formatted string as specified by the conversion pattern. */ public String format(LoggingEvent event) { // Reset working stringbuffer if(sbuf.capacity() > MAX_CAPACITY) { sbuf = new StringBuffer(BUF_SIZE); } else { sbuf.setLength(0); } PatternConverter c = head; while(c != null) { c.format(sbuf, event); c = c.next; } return sbuf.toString(); } }
/** Produces a formatted string as specified by the conversion pattern. */ public String format(LoggingEvent event) { // Reset working stringbuffer if(sbuf.capacity() > MAX_CAPACITY) { sbuf = new StringBuffer(BUF_SIZE); } else { sbuf.setLength(0); } PatternConverter c = head; while(c != null) { c.format(sbuf, event); c = c.next; } return sbuf.toString(); } }
buf.setLength(0); c.format(buf, event);
c.format(sbuf, event); c = c.next;
buf.setLength(0); c.format(buf, event);